diff --git a/pkgs/development/python-modules/pymedio/default.nix b/pkgs/development/python-modules/pymedio/default.nix index d7f90f9f8453..bf220a4dc248 100644 --- a/pkgs/development/python-modules/pymedio/default.nix +++ b/pkgs/development/python-modules/pymedio/default.nix @@ -3,7 +3,11 @@ , fetchFromGitHub , pythonOlder , pytestCheckHook +, cryptography +, nibabel , numpy +, pydicom +, simpleitk }: buildPythonPackage rec { @@ -18,14 +22,20 @@ buildPythonPackage rec { hash = "sha256-iHbClOrtYkHT1Nar+5j/ig4Krya8LdQdFB4Mmm5B9bg="; }; - # relax Python dep to work with 3.10.x + # relax Python dep to work with 3.10.x and 3.11.x postPatch = '' - substituteInPlace setup.cfg --replace "!=3.10.*," "" + substituteInPlace setup.cfg --replace "!=3.10.*," "" --replace "!=3.11.*" "" ''; propagatedBuildInputs = [ numpy ]; - doCheck = false; # requires SimpleITK python package (not in Nixpkgs) + nativeCheckInputs = [ + pytestCheckHook + cryptography + nibabel + pydicom + simpleitk + ]; pythonImportsCheck = [ "pymedio"