Commit bfe89bb8 authored by Ben Darwin's avatar Ben Darwin
Browse files

python313Packages.pylibjpeg-libjpeg: unvendor libjpeg source

parent 2aa4e95e
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@
  pydicom,
  pylibjpeg-data,
  pylibjpeg,
  libjpeg-tools,
}:

let
@@ -25,13 +26,15 @@ let
      owner = "pydicom";
      repo = "pylibjpeg-libjpeg";
      tag = "v${self.version}";
      hash = "sha256-xqSA1cutTsH9k4l9CW96n/CURzkAyDi3PZylZeedVjA=";
      fetchSubmodules = true;
      hash = "sha256-P01pofPLTOa5ynsCkLnxiMzVfCg4tbT+/CcpPTeSViw=";
    };

    postPatch = ''
      substituteInPlace pyproject.toml \
        --replace-fail 'poetry-core >=1.8,<2' 'poetry-core'
      rmdir lib/libjpeg
      cp -r ${libjpeg-tools.src} lib/libjpeg
      chmod u+w lib/libjpeg
    '';

    build-system = [