diff options
Diffstat (limited to 'pkgs/development/python-modules/nibabel/default.nix')
-rw-r--r-- | pkgs/development/python-modules/nibabel/default.nix | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/nibabel/default.nix b/pkgs/development/python-modules/nibabel/default.nix index 71dba55c6ccfd..9b70a4fe20748 100644 --- a/pkgs/development/python-modules/nibabel/default.nix +++ b/pkgs/development/python-modules/nibabel/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage , fetchPypi +, pythonAtLeast , pythonOlder , hatchling , hatch-vcs @@ -15,7 +16,7 @@ , pytest-doctestplus , pytest-httpserver , pytest-xdist -, pytestCheckHook +, pytest7CheckHook }: buildPythonPackage rec { @@ -70,15 +71,15 @@ buildPythonPackage rec { pytest-doctestplus pytest-httpserver pytest-xdist - pytestCheckHook + pytest7CheckHook ] ++ passthru.optional-dependencies.all; preCheck = '' export PATH=$out/bin:$PATH ''; - disabledTestPaths = lib.optionals (!pythonOlder "3.12") [ - # tries to use `distutils`, removed in Python 3.12 + disabledTestPaths = lib.optionals (pythonAtLeast "3.12") [ + # uses distutils "nisext/tests/test_sexts.py" ]; |