about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2022-09-15 04:55:40 +0200
committerMartin Weinelt <hexa@darmstadt.ccc.de>2022-09-15 04:55:40 +0200
commit5e05ec33520b6531e32db1b1e007ed0ab6362d74 (patch)
tree0a27607d83fd64a175b43c2a4bb5427b2bd5e2ab
parentc1e37f851718c8c87668132018b14a3235763b96 (diff)
python3Packages.img2pdf: apply patch to fix tests
-rw-r--r--pkgs/development/python-modules/img2pdf/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/img2pdf/default.nix b/pkgs/development/python-modules/img2pdf/default.nix
index 791edcb2fb20e..c749071bab9b0 100644
--- a/pkgs/development/python-modules/img2pdf/default.nix
+++ b/pkgs/development/python-modules/img2pdf/default.nix
@@ -2,6 +2,7 @@
 , buildPythonPackage
 , isPy27
 , fetchPypi
+, fetchpatch
 , pikepdf
 , pillow
 , stdenv
@@ -26,6 +27,14 @@ buildPythonPackage rec {
     sha256 = "8ec898a9646523fd3862b154f3f47cd52609c24cc3e2dc1fb5f0168f0cbe793c";
   };
 
+  patches = [
+    (fetchpatch {
+      # https://gitlab.mister-muffin.de/josch/img2pdf/issues/148
+      url = "https://gitlab.mister-muffin.de/josch/img2pdf/commit/57d7e07e6badb252c12015388b58fcb5285d3158.patch";
+      hash = "sha256-H/g55spe/oVJRxO2Vh+F+ZgR6aLoRUrNeu5WnuU7k/k=";
+    })
+  ];
+
   propagatedBuildInputs = [
     pikepdf
     pillow