diff --git a/pkgs/development/python-modules/dicom2nifti/default.nix b/pkgs/development/python-modules/dicom2nifti/default.nix index e2d8c01e9874..0e12fe09c775 100644 --- a/pkgs/development/python-modules/dicom2nifti/default.nix +++ b/pkgs/development/python-modules/dicom2nifti/default.nix @@ -14,33 +14,36 @@ buildPythonPackage rec { pname = "dicom2nifti"; - version = "2.4.8"; - format = "setuptools"; + version = "2.4.11"; + pyproject = true; + disabled = pythonOlder "3.6"; # no tests in PyPI dist src = fetchFromGitHub { owner = "icometrix"; repo = pname; - rev = version; - hash = "sha256-2Pspxdeu3pHwXpbjS6bQQnvdeMuITRwYarPuLlmNcv8"; + rev = "refs/tags/${version}"; + hash = "sha256-/JauQZcCQDl1ukcSE3YPbf1SyhVxDNJUlqnFwdlwYQY="; }; + build-system = [ setuptools ]; + propagatedBuildInputs = [ gdcm nibabel numpy pydicom scipy - setuptools ]; # python-gdcm just builds the python interface provided by the "gdcm" package, so # we should be able to replace "python-gdcm" with "gdcm" but this doesn't work # (similar to https://github.com/NixOS/nixpkgs/issues/84774) postPatch = '' - substituteInPlace setup.py --replace "python-gdcm" "" - substituteInPlace tests/test_generic.py --replace "from common" "from dicom2nifti.common" + substituteInPlace setup.py --replace-fail "python-gdcm" "" + substituteInPlace tests/test_generic.py --replace-fail "from common" "from dicom2nifti.common" + substituteInPlace tests/test_ge.py --replace-fail "import convert_generic" "import dicom2nifti.convert_generic as convert_generic" ''; nativeCheckInputs = [ pytestCheckHook ];