diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2023-08-17 21:52:47 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2023-08-17 21:52:47 +0200 |
commit | 5208e8e4997e3e4424628ef2b4977af18ba0a567 (patch) | |
tree | b7d2bfde3f4d02edf47162f80036acb9a039fd1a | |
parent | baf834d40d5451aae537fee946aa9adcfe0ffa2b (diff) |
python311Packages.irc: enable tests
-rw-r--r-- | pkgs/development/python-modules/irc/default.nix | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/pkgs/development/python-modules/irc/default.nix b/pkgs/development/python-modules/irc/default.nix index 1dd5eeab379d3..a068d26695e53 100644 --- a/pkgs/development/python-modules/irc/default.nix +++ b/pkgs/development/python-modules/irc/default.nix @@ -1,16 +1,15 @@ { lib , buildPythonPackage , fetchPypi -, isPy3k -, six +, jaraco-collections +, jaraco-itertools , jaraco-logging -, jaraco-text , jaraco-stream +, jaraco-text +, pytestCheckHook +, pythonOlder , pytz -, jaraco-itertools , setuptools-scm -, jaraco-collections -, importlib-metadata }: buildPythonPackage rec { @@ -18,7 +17,7 @@ buildPythonPackage rec { version = "20.3.0"; format = "pyproject"; - disabled = !isPy3k; + disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; @@ -30,17 +29,17 @@ buildPythonPackage rec { ]; propagatedBuildInputs = [ - six - importlib-metadata + jaraco-collections + jaraco-itertools jaraco-logging - jaraco-text jaraco-stream + jaraco-text pytz - jaraco-itertools - jaraco-collections ]; - doCheck = false; + nativeCheckInputs = [ + pytestCheckHook + ]; pythonImportsCheck = [ "irc" @@ -51,6 +50,6 @@ buildPythonPackage rec { homepage = "https://github.com/jaraco/irc"; changelog = "https://github.com/jaraco/irc/blob/v${version}/NEWS.rst"; license = licenses.mit; - maintainers = with maintainers; []; + maintainers = with maintainers; [ ]; }; } |