diff options
author | Robert Schütz <nix@dotlambda.de> | 2023-11-26 11:22:26 -0800 |
---|---|---|
committer | Robert Schütz <nix@dotlambda.de> | 2023-11-26 11:40:43 -0800 |
commit | 3d2902dd2e41dfa518c3e05fdbbb34b8d8be5d9d (patch) | |
tree | c4a79324e6c5f588051d3b2fe9b51c773f880070 | |
parent | 8ae9c8640cec51fcfa76b07f8cce2280716b72ce (diff) |
python311Packages.img2pdf: 0.5.0 -> 0.5.1
Changelog: https://gitlab.mister-muffin.de/josch/img2pdf/src/tag/0.5.1/CHANGES.rst
-rw-r--r-- | pkgs/development/python-modules/img2pdf/default-icc-profile.patch | 11 | ||||
-rw-r--r-- | pkgs/development/python-modules/img2pdf/default.nix | 4 |
2 files changed, 9 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/img2pdf/default-icc-profile.patch b/pkgs/development/python-modules/img2pdf/default-icc-profile.patch index 139eafd63ced7..28d334a71e6b9 100644 --- a/pkgs/development/python-modules/img2pdf/default-icc-profile.patch +++ b/pkgs/development/python-modules/img2pdf/default-icc-profile.patch @@ -1,8 +1,8 @@ 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(): @@ -11,8 +11,11 @@ index 036232b..d2e7829 100755 - "/usr/share/color/icc/OpenICC/sRGB.icc", - "/usr/share/color/icc/colord/sRGB.icc", - ]: -- if os.path.exists(profile): -- return 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@" diff --git a/pkgs/development/python-modules/img2pdf/default.nix b/pkgs/development/python-modules/img2pdf/default.nix index a94681ada0f14..3bfbb03fc6759 100644 --- a/pkgs/development/python-modules/img2pdf/default.nix +++ b/pkgs/development/python-modules/img2pdf/default.nix @@ -22,7 +22,7 @@ buildPythonPackage rec { pname = "img2pdf"; - version = "0.5.0"; + version = "0.5.1"; disabled = isPy27; pyproject = true; @@ -32,7 +32,7 @@ buildPythonPackage rec { owner = "josch"; repo = "img2pdf"; rev = version; - hash = "sha256-k0GqBTS8PvYDmjzyLCSdQB7oBakrEQYJcQykDNrzgcA="; + hash = "sha256-mrNTc37GrHTc7NW0sYI1FlAOlnvXum02867enqHsAEQ="; }; patches = [ |