Skip to content

Commit 64f4dfa

Browse files
committed
python312Packages.i-pi: enable tests
1 parent b08afbf commit 64f4dfa

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

pkgs/development/python-modules/i-pi/default.nix

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
makeWrapper,
77
setuptools,
88
numpy,
9-
pytest,
9+
distutils,
10+
pytestCheckHook,
1011
mock,
1112
pytest-mock,
13+
pythonAtLeast,
1214
}:
1315

1416
buildPythonPackage rec {
@@ -33,10 +35,12 @@ buildPythonPackage rec {
3335
dependencies = [ numpy ];
3436

3537
nativeCheckInputs = [
36-
pytest
38+
pytestCheckHook
3739
mock
3840
pytest-mock
39-
];
41+
] ++ lib.optional (pythonAtLeast "3.12") distutils;
42+
43+
pytestFlagsArray = [ "ipi_tests/unit_tests" ];
4044

4145
postFixup = ''
4246
wrapProgram $out/bin/i-pi \

0 commit comments

Comments
 (0)