python312Packages.nibabel: fix tests

This commit is contained in:
Martin Weinelt 2024-03-26 16:07:42 +01:00
parent 4dd692fb1a
commit a87b43072d
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -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,13 +71,18 @@ buildPythonPackage rec {
pytest-doctestplus
pytest-httpserver
pytest-xdist
pytestCheckHook
pytest7CheckHook
] ++ passthru.optional-dependencies.all;
preCheck = ''
export PATH=$out/bin:$PATH
'';
disabledTestPaths = lib.optionals (pythonAtLeast "3.12") [
# uses distutils
"nisext/tests/test_sexts.py"
];
meta = with lib; {
homepage = "https://nipy.org/nibabel";
changelog = "https://github.com/nipy/nibabel/blob/${version}/Changelog";