From f23d794c07dbf84289b84218eb235b3725121a93 Mon Sep 17 00:00:00 2001 From: benaryorg Date: Tue, 5 Nov 2024 11:04:46 +0000 Subject: [PATCH] python3Packages.irc: build fix for Python 3.11 Without this patch the build fails during the pythonRuntimeDepsCheck phase: Checking runtime dependencies for irc-20.5.0-py3-none-any.whl - importlib-resources not installed Adding the importlib-resources polyfill for Python version 3.11 and below fixes the build. It is unclear whether this is actually strictly required on 3.11 (i.e. because of backported features from 3.12) or whether the runtime check is stricter than necessary. May as well fix the build though. Signed-off-by: benaryorg --- pkgs/development/python-modules/irc/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/irc/default.nix b/pkgs/development/python-modules/irc/default.nix index d923dc188ca4..e0bac99c8009 100644 --- a/pkgs/development/python-modules/irc/default.nix +++ b/pkgs/development/python-modules/irc/default.nix @@ -11,6 +11,7 @@ pythonOlder, pytz, setuptools-scm, + importlib-resources, }: buildPythonPackage rec { @@ -34,7 +35,7 @@ buildPythonPackage rec { jaraco-stream jaraco-text pytz - ]; + ] ++ lib.optionals (pythonOlder "3.12") [ importlib-resources ]; nativeCheckInputs = [ pytestCheckHook ];