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 ];