pythonPackages.aiorun: switch to pytestCheckHook, add import check
This commit is contained in:
parent
f182ce88b8
commit
9df68ae7ea
@ -3,7 +3,7 @@
|
|||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, isPy27
|
, isPy27
|
||||||
, pygments
|
, pygments
|
||||||
, pytest
|
, pytestCheckHook
|
||||||
, pytestcov
|
, pytestcov
|
||||||
, uvloop
|
, uvloop
|
||||||
}:
|
}:
|
||||||
@ -27,7 +27,7 @@ buildPythonPackage rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytest
|
pytestCheckHook
|
||||||
pytestcov
|
pytestcov
|
||||||
uvloop
|
uvloop
|
||||||
];
|
];
|
||||||
@ -37,9 +37,7 @@ buildPythonPackage rec {
|
|||||||
export HOME=$TMPDIR
|
export HOME=$TMPDIR
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkPhase = ''
|
pythonImportsCheck = [ "aiorun" ];
|
||||||
pytest
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Boilerplate for asyncio applications";
|
description = "Boilerplate for asyncio applications";
|
||||||
|
Loading…
Reference in New Issue
Block a user