Commit 8ab64aad authored by Weijia Wang's avatar Weijia Wang
Browse files

python312Packages.dicom-numpy: fix build

parent 27bb0611
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
  fetchFromGitHub,
  pythonOlder,
  pytestCheckHook,
  setuptools,
  numpy,
  pydicom,
}:
@@ -22,6 +23,15 @@ buildPythonPackage rec {
    hash = "sha256-pgmREQlstr0GY2ThIWt4hbcSWmaNWgkr2gO4PSgGHqE=";
  };

  postPatch = ''
    substituteInPlace dicom_numpy/zip_archive.py \
      --replace-fail "pydicom.read_file" "pydicom.dcmread"
  '';

  build-system = [
    setuptools
  ];

  propagatedBuildInputs = [
    numpy
    pydicom