Merge pull request #272580 from SuperSandro2000/img2pdf
python311Packages.img2pdf: drop runtime dependencies on colord
This commit is contained in:
commit
56c295d176
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue