Loading pkgs/development/python-modules/img2pdf/default-icc-profile.patch +7 −4 Original line number Diff line number Diff line diff --git a/src/img2pdf.py b/src/img2pdf.py index 036232b..d2e7829 100755 index f89670b..01ec4d3 100755 --- a/src/img2pdf.py +++ b/src/img2pdf.py @@ -3815,14 +3815,7 @@ def gui(): @@ -3841,17 +3841,7 @@ def validate_icc(fname): def get_default_icc_profile(): Loading @@ -11,7 +11,10 @@ index 036232b..d2e7829 100755 - "/usr/share/color/icc/OpenICC/sRGB.icc", - "/usr/share/color/icc/colord/sRGB.icc", - ]: - if os.path.exists(profile): - if not os.path.exists(profile): - continue - if not file_is_icc(profile): - continue - return profile - return "/usr/share/color/icc/sRGB.icc" + return "@srgbProfile@" Loading pkgs/development/python-modules/img2pdf/default.nix +2 −2 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ buildPythonPackage rec { pname = "img2pdf"; version = "0.5.0"; version = "0.5.1"; disabled = isPy27; pyproject = true; Loading @@ -32,7 +32,7 @@ buildPythonPackage rec { owner = "josch"; repo = "img2pdf"; rev = version; hash = "sha256-k0GqBTS8PvYDmjzyLCSdQB7oBakrEQYJcQykDNrzgcA="; hash = "sha256-mrNTc37GrHTc7NW0sYI1FlAOlnvXum02867enqHsAEQ="; }; patches = [ Loading Loading
pkgs/development/python-modules/img2pdf/default-icc-profile.patch +7 −4 Original line number Diff line number Diff line diff --git a/src/img2pdf.py b/src/img2pdf.py index 036232b..d2e7829 100755 index f89670b..01ec4d3 100755 --- a/src/img2pdf.py +++ b/src/img2pdf.py @@ -3815,14 +3815,7 @@ def gui(): @@ -3841,17 +3841,7 @@ def validate_icc(fname): def get_default_icc_profile(): Loading @@ -11,7 +11,10 @@ index 036232b..d2e7829 100755 - "/usr/share/color/icc/OpenICC/sRGB.icc", - "/usr/share/color/icc/colord/sRGB.icc", - ]: - if os.path.exists(profile): - if not os.path.exists(profile): - continue - if not file_is_icc(profile): - continue - return profile - return "/usr/share/color/icc/sRGB.icc" + return "@srgbProfile@" Loading
pkgs/development/python-modules/img2pdf/default.nix +2 −2 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ buildPythonPackage rec { pname = "img2pdf"; version = "0.5.0"; version = "0.5.1"; disabled = isPy27; pyproject = true; Loading @@ -32,7 +32,7 @@ buildPythonPackage rec { owner = "josch"; repo = "img2pdf"; rev = version; hash = "sha256-k0GqBTS8PvYDmjzyLCSdQB7oBakrEQYJcQykDNrzgcA="; hash = "sha256-mrNTc37GrHTc7NW0sYI1FlAOlnvXum02867enqHsAEQ="; }; patches = [ Loading