Unverified Commit d9be5180 authored by misuzu's avatar misuzu Committed by GitHub
Browse files

python312Packages.dicom-numpy: fix build (#370449)

parents a3bcbb0b 8ab64aad
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