python3Packages.async_generator: use pytestCheckHook
This commit is contained in:
committed by
Jonathan Ringer
parent
c99eb31d1d
commit
d5310bc00a
@@ -1,4 +1,10 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, pythonOlder, isPy35, pytest, pytest-asyncio }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "async-generator";
|
||||
@@ -12,17 +18,17 @@ buildPythonPackage rec {
|
||||
sha256 = "6ebb3d106c12920aaae42ccb6f787ef5eefdcdd166ea3d628fa8476abe712144";
|
||||
};
|
||||
|
||||
# no longer compatible with pytest-asyncio
|
||||
doCheck = false;
|
||||
checkInputs = [ pytest pytest-asyncio ];
|
||||
checkInputs = [
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
pytest -W error -ra -v --pyargs async_generator
|
||||
'';
|
||||
pythonImportsCheck = [ "async_generator" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Async generators and context managers for Python 3.5+";
|
||||
homepage = "https://github.com/python-trio/async_generator";
|
||||
license = with licenses; [ mit asl20 ];
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user