diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-02-04 22:27:52 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-02-04 22:27:52 +0100 |
commit | bc20dca5e4f1ff47b624251487786ed1ce8f5581 (patch) | |
tree | 704c62e2bc47c9fe961d740a3a965a5acb8c5fd4 /pkgs/development/python-modules/slixmpp/default.nix | |
parent | 90510399c58daa37606cd4bfbc62521e2ea623d9 (diff) |
python3Packages.slixmpp: switch to pytestCheckHook
Diffstat (limited to 'pkgs/development/python-modules/slixmpp/default.nix')
-rw-r--r-- | pkgs/development/python-modules/slixmpp/default.nix | 36 |
1 files changed, 27 insertions, 9 deletions
diff --git a/pkgs/development/python-modules/slixmpp/default.nix b/pkgs/development/python-modules/slixmpp/default.nix index 250d7d771b7ba..341f53cfe0b52 100644 --- a/pkgs/development/python-modules/slixmpp/default.nix +++ b/pkgs/development/python-modules/slixmpp/default.nix @@ -1,4 +1,15 @@ -{ lib, buildPythonPackage, fetchPypi, isPy3k, substituteAll, aiodns, pyasn1, pyasn1-modules, aiohttp, gnupg, nose }: +{ lib +, buildPythonPackage +, aiodns +, aiohttp +, fetchPypi +, gnupg +, isPy3k +, pyasn1 +, pyasn1-modules +, pytestCheckHook +, substituteAll +}: buildPythonPackage rec { pname = "slixmpp"; @@ -18,17 +29,24 @@ buildPythonPackage rec { }) ]; - propagatedBuildInputs = [ aiodns pyasn1 pyasn1-modules aiohttp ]; + propagatedBuildInputs = [ + aiodns + aiohttp + pyasn1 + pyasn1-modules + ]; + + checkInputs = [ pytestCheckHook ]; - checkInputs = [ nose ]; + # Exclude live tests + disabledTestFiles = [ "tests/live_test.py" ]; - checkPhase = '' - nosetests --where=tests --exclude=live -i slixtest.py - ''; + pythonImportsCheck = [ "slixmpp" ]; - meta = { + meta = with lib; { description = "Elegant Python library for XMPP"; - license = lib.licenses.mit; - homepage = "https://dev.louiz.org/projects/slixmpp"; + homepage = "https://slixmpp.readthedocs.io/"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; }; } |