Merge pull request #272580 from SuperSandro2000/img2pdf

python311Packages.img2pdf: drop runtime dependencies on colord
This commit is contained in:
Dmitry Kalinkin 2023-12-09 11:58:04 -05:00 committed by GitHub
commit 56c295d176
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,6 +17,7 @@
, numpy
, poppler_utils
, pytestCheckHook
, runCommand
, scipy
}:
@ -41,7 +42,10 @@ buildPythonPackage rec {
srgbProfile = if stdenv.isDarwin then
"/System/Library/ColorSync/Profiles/sRGB Profile.icc"
else
"${colord}/share/color/icc/colord/sRGB.icc";
# break runtime dependency chain all of colord dependencies
runCommand "sRGC.icc" { } ''
cp ${colord}/share/color/icc/colord/sRGB.icc $out
'';
})
(fetchpatch {
# https://gitlab.mister-muffin.de/josch/img2pdf/issues/178