Unverified Commit f23d794c authored by benaryorg's avatar benaryorg
Browse files

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: default avatarbenaryorg <binary@benary.org>
parent 12a7a393
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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 ];