From 644a9e68f4ab653d8fa5daf344463fac11350867 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sat, 17 Sep 2022 03:30:10 +0100 Subject: [PATCH] 3p/nixpkgs: add pr191265 --- third_party/nixpkgs/patches/pr191265.patch | 36 +++++++++++++++++++ third_party/nixpkgs/patches/series | 1 + .../python-modules/img2pdf/default.nix | 9 +++++ 3 files changed, 46 insertions(+) create mode 100644 third_party/nixpkgs/patches/pr191265.patch diff --git a/third_party/nixpkgs/patches/pr191265.patch b/third_party/nixpkgs/patches/pr191265.patch new file mode 100644 index 0000000000..ccdf2a3733 --- /dev/null +++ b/third_party/nixpkgs/patches/pr191265.patch @@ -0,0 +1,36 @@ +From 5e05ec33520b6531e32db1b1e007ed0ab6362d74 Mon Sep 17 00:00:00 2001 +From: Martin Weinelt +Date: Thu, 15 Sep 2022 04:55:40 +0200 +Subject: [PATCH] python3Packages.img2pdf: apply patch to fix tests + +--- + pkgs/development/python-modules/img2pdf/default.nix | 9 +++++++++ + 1 file changed, 9 insertions(+) + +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 diff --git a/third_party/nixpkgs/patches/series b/third_party/nixpkgs/patches/series index e69de29bb2..dd8f57e63d 100644 --- a/third_party/nixpkgs/patches/series +++ b/third_party/nixpkgs/patches/series @@ -0,0 +1 @@ +pr191265.patch diff --git a/third_party/nixpkgs/pkgs/development/python-modules/img2pdf/default.nix b/third_party/nixpkgs/pkgs/development/python-modules/img2pdf/default.nix index 791edcb2fb..c749071bab 100644 --- a/third_party/nixpkgs/pkgs/development/python-modules/img2pdf/default.nix +++ b/third_party/nixpkgs/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