pythonPackages.aiorun: switch to pytestCheckHook, add import check

This commit is contained in:
Sandro Jäckel 2021-02-16 22:36:35 +01:00
parent f182ce88b8
commit 9df68ae7ea
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -3,7 +3,7 @@
, fetchFromGitHub
, isPy27
, pygments
, pytest
, pytestCheckHook
, pytestcov
, uvloop
}:
@ -27,7 +27,7 @@ buildPythonPackage rec {
];
checkInputs = [
pytest
pytestCheckHook
pytestcov
uvloop
];
@ -37,9 +37,7 @@ buildPythonPackage rec {
export HOME=$TMPDIR
'';
checkPhase = ''
pytest
'';
pythonImportsCheck = [ "aiorun" ];
meta = with lib; {
description = "Boilerplate for asyncio applications";