summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pytest-shutil/default.nix
blob: 1937aefc634e640a7b14fd53de6b609b040cfdb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
  lib,
  isPyPy,
  buildPythonPackage,
  pytest-fixture-config,

  # build-time
  setuptools,

  # runtime
  pytest,
  execnet,
  termcolor,
  six,

  # tests
  pytestCheckHook,
}:

buildPythonPackage {
  pname = "pytest-shutil";
  inherit (pytest-fixture-config) version src patches;
  pyproject = true;

  postPatch = ''
    cd pytest-shutil
  '';

  build-system = [
    setuptools
  ];

  buildInputs = [ pytest ];

  dependencies = [
    execnet
    termcolor
    six
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  disabledTests = lib.optionals isPyPy [
    "test_run"
    "test_run_integration"
  ];

  meta = {
    description = "Goodie-bag of unix shell and environment tools for py.test";
    homepage = "https://github.com/manahl/pytest-plugins";
    maintainers = with lib.maintainers; [ ryansydnor ];
    license = lib.licenses.mit;
  };
}