From a87b43072d60300ce161f7bb445394d7c0dd5e34 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 26 Mar 2024 16:07:42 +0100 Subject: [PATCH] python312Packages.nibabel: fix tests --- pkgs/development/python-modules/nibabel/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/nibabel/default.nix b/pkgs/development/python-modules/nibabel/default.nix index 7d8e021fd0cf..9b70a4fe2074 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,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";