Skip to content

Commit d9be518

Browse files
authored
python312Packages.dicom-numpy: fix build (#370449)
2 parents a3bcbb0 + 8ab64aa commit d9be518

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pkgs/development/python-modules/dicom-numpy/default.nix

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
fetchFromGitHub,
55
pythonOlder,
66
pytestCheckHook,
7+
setuptools,
78
numpy,
89
pydicom,
910
}:
@@ -22,6 +23,15 @@ buildPythonPackage rec {
2223
hash = "sha256-pgmREQlstr0GY2ThIWt4hbcSWmaNWgkr2gO4PSgGHqE=";
2324
};
2425

26+
postPatch = ''
27+
substituteInPlace dicom_numpy/zip_archive.py \
28+
--replace-fail "pydicom.read_file" "pydicom.dcmread"
29+
'';
30+
31+
build-system = [
32+
setuptools
33+
];
34+
2535
propagatedBuildInputs = [
2636
numpy
2737
pydicom

0 commit comments

Comments
 (0)