From fda93f9f11babd7673240f5bb332a92d1a98ee3d Mon Sep 17 00:00:00 2001 From: evils <30512529+evils@users.noreply.github.com> Date: Mon, 12 Feb 2024 16:23:52 +0100 Subject: [PATCH] =?UTF-8?q?liquidctl:=20fix=20test=20for=20pillow=20?= =?UTF-8?q?=E2=89=A5=2010.2.0=20(#288085)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * liquidctl: fix test for pillow ≥ 10.2.0 issue described upstream in https://github.com/liquidctl/liquidctl/issues/661 --- pkgs/development/python-modules/liquidctl/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/python-modules/liquidctl/default.nix b/pkgs/development/python-modules/liquidctl/default.nix index 70d4fc1862f0..94a232ef5659 100644 --- a/pkgs/development/python-modules/liquidctl/default.nix +++ b/pkgs/development/python-modules/liquidctl/default.nix @@ -15,6 +15,7 @@ , colorlog , crcmod , pillow +, fetchpatch }: buildPythonPackage rec { @@ -31,6 +32,14 @@ buildPythonPackage rec { hash = "sha256-LU8rQmXrEIoOBTTFotGvMeHqksYGrtNo2YSl2l2e/UI="; }; + patches = [ + (fetchpatch { + name = "tests-pillow-10.2.0-compat.patch"; + url = "https://github.com/liquidctl/liquidctl/commit/c50afa4e610bd2e268e85c347e2644794c817a78.diff"; + hash = "sha256-1cKk3drl3RybHmnPXdlJoeYK6UDz25jHSS2YS/XLHIY="; + }) + ]; + nativeBuildInputs = [ installShellFiles setuptools