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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
{ lib
, isPyPy
, buildPythonPackage
, pytest-fixture-config
, fetchpatch
# build-time
, setuptools
, setuptools-git
# runtime
, pytest
, mock
, path
, execnet
, termcolor
, six
# tests
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pytest-shutil";
inherit (pytest-fixture-config) version src;
pyproject = true;
sourceRoot = "${src.name}/pytest-shutil";
# imp was removed in Python 3.12
patches = [
(fetchpatch {
name = "stop-using-imp.patch";
url = "https://build.opensuse.org/public/source/openSUSE:Factory/python-pytest-shutil/stop-using-imp.patch?rev=10";
hash = "sha256-L8tXoQ9q8o6aP3TpJY/sUVVbUd/ebw0h6de6dBj1WNY=";
stripLen = 1;
})
];
build-system = [
setuptools
setuptools-git
];
buildInputs = [ pytest ];
dependencies = [
mock
path
execnet
termcolor
six
];
nativeCheckInputs = [
pytestCheckHook
];
disabledTests = [
"test_pretty_formatter"
] ++ lib.optionals isPyPy [
"test_run"
"test_run_integration"
];
meta = with lib; {
description = "A goodie-bag of unix shell and environment tools for py.test";
homepage = "https://github.com/manahl/pytest-plugins";
maintainers = with maintainers; [ ryansydnor ];
license = licenses.mit;
};
}
|