python3Packages.slixmpp: switch to pytestCheckHook

This commit is contained in:
Fabian Affolter 2021-02-04 22:27:52 +01:00
parent 90510399c5
commit bc20dca5e4

View File

@ -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 { buildPythonPackage rec {
pname = "slixmpp"; pname = "slixmpp";
@ -18,17 +29,24 @@ buildPythonPackage rec {
}) })
]; ];
propagatedBuildInputs = [ aiodns pyasn1 pyasn1-modules aiohttp ]; propagatedBuildInputs = [
aiodns
aiohttp
pyasn1
pyasn1-modules
];
checkInputs = [ nose ]; checkInputs = [ pytestCheckHook ];
checkPhase = '' # Exclude live tests
nosetests --where=tests --exclude=live -i slixtest.py disabledTestFiles = [ "tests/live_test.py" ];
'';
meta = { pythonImportsCheck = [ "slixmpp" ];
meta = with lib; {
description = "Elegant Python library for XMPP"; description = "Elegant Python library for XMPP";
license = lib.licenses.mit; homepage = "https://slixmpp.readthedocs.io/";
homepage = "https://dev.louiz.org/projects/slixmpp"; license = licenses.mit;
maintainers = with maintainers; [ fab ];
}; };
} }