From b1ceabde55dd228c79c312ef75580d3dd25d55e7 Mon Sep 17 00:00:00 2001 From: Evils Date: Sun, 11 Feb 2024 18:07:31 +0100 Subject: [PATCH] =?UTF-8?q?liquidctl:=20fix=20test=20for=20pillow=20?= =?UTF-8?q?=E2=89=A5=2010.2.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit issue described upstream in https://github.com/liquidctl/liquidctl/issues/661 manually backported for 23.11 where there's still SETUPTOOLS_SCM_PRETEND_VERSION which was removed as redundant on master shortly after 23.11 --- 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 f6e5379fb27103..2259899c1db458 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 { @@ -33,6 +34,14 @@ buildPythonPackage rec { env.SETUPTOOLS_SCM_PRETEND_VERSION = version; + 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