1{
2 lib,
3 isPyPy,
4 buildPythonPackage,
5 pytest-fixture-config,
6
7 # build-time
8 setuptools,
9 setuptools-git,
10
11 # runtime
12 pytest,
13 mock,
14 path,
15 execnet,
16 termcolor,
17 six,
18
19 # tests
20 pytestCheckHook,
21}:
22
23buildPythonPackage {
24 pname = "pytest-shutil";
25 inherit (pytest-fixture-config) version src patches;
26 pyproject = true;
27
28 postPatch = ''
29 cd pytest-shutil
30 '';
31
32 build-system = [
33 setuptools
34 setuptools-git
35 ];
36
37 buildInputs = [ pytest ];
38
39 dependencies = [
40 mock
41 path
42 execnet
43 termcolor
44 six
45 ];
46
47 nativeCheckInputs = [ pytestCheckHook ];
48
49 disabledTests = [
50 "test_pretty_formatter"
51 ]
52 ++ lib.optionals isPyPy [
53 "test_run"
54 "test_run_integration"
55 ];
56
57 meta = with lib; {
58 description = "Goodie-bag of unix shell and environment tools for py.test";
59 homepage = "https://github.com/manahl/pytest-plugins";
60 maintainers = with maintainers; [ ryansydnor ];
61 license = licenses.mit;
62 };
63}