From 4874517e27163fa16d37028bce318287fc70ec6a Mon Sep 17 00:00:00 2001 From: Ben Darwin Date: Tue, 2 Apr 2024 20:16:31 -0400 Subject: [PATCH] python31Packages.nibabel: unbreak by disabling test requiring `distutils` --- pkgs/development/python-modules/nibabel/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/nibabel/default.nix b/pkgs/development/python-modules/nibabel/default.nix index 7d8e021fd0cf..71dba55c6ccf 100644 --- a/pkgs/development/python-modules/nibabel/default.nix +++ b/pkgs/development/python-modules/nibabel/default.nix @@ -77,6 +77,11 @@ buildPythonPackage rec { export PATH=$out/bin:$PATH ''; + disabledTestPaths = lib.optionals (!pythonOlder "3.12") [ + # tries to use `distutils`, removed in Python 3.12 + "nisext/tests/test_sexts.py" + ]; + meta = with lib; { homepage = "https://nipy.org/nibabel"; changelog = "https://github.com/nipy/nibabel/blob/${version}/Changelog";