Skip to content

Commit da25f94

Browse files
python312Packages.bindep: 2.12.0 -> 2.13.0 (NixOS#395030)
2 parents 6a8f622 + d95fea4 commit da25f94

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

pkgs/development/python-modules/bindep/default.nix

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,29 @@
33
buildPythonPackage,
44
distro,
55
fetchPypi,
6+
fixtures,
7+
libredirect,
68
packaging,
79
parsley,
810
pbr,
9-
setuptools,
11+
pytestCheckHook,
12+
testtools,
1013
}:
1114

1215
buildPythonPackage rec {
1316
pname = "bindep";
14-
version = "2.12.0";
17+
version = "2.13.0";
1518
pyproject = true;
1619

1720
src = fetchPypi {
1821
inherit pname version;
19-
hash = "sha256-wGtR5tC6OWWq2PPCXwpXS+D4AboHyxp4SV2olUZ952A=";
22+
hash = "sha256-33VkdT5YMDO7ETM4FQ13JUAUW00YmkgB7FaiW17eUFA=";
2023
};
2124

2225
env.PBR_VERSION = version;
2326

2427
build-system = [
2528
pbr
26-
setuptools
2729
];
2830

2931
dependencies = [
@@ -33,8 +35,21 @@ buildPythonPackage rec {
3335
distro
3436
];
3537

36-
# Checks moved to 'passthru.tests' to workaround infinite recursion
37-
doCheck = false;
38+
nativeCheckInputs = [
39+
fixtures
40+
libredirect.hook
41+
pytestCheckHook
42+
testtools
43+
];
44+
45+
preCheck = ''
46+
echo "ID=nixos
47+
" > os-release
48+
export NIX_REDIRECTS=/etc/os-release=$(realpath os-release)
49+
export PATH=$PATH:$out/bin
50+
'';
51+
52+
pytestFlagsArray = [ "-s" ];
3853

3954
pythonImportsCheck = [ "bindep" ];
4055

0 commit comments

Comments
 (0)