|
|
|
@ -5,7 +5,7 @@ |
|
|
|
|
, asynctest |
|
|
|
|
, buildPythonPackage |
|
|
|
|
, fetchFromGitHub |
|
|
|
|
, poetry |
|
|
|
|
, poetry-core |
|
|
|
|
, pytest-aiohttp |
|
|
|
|
, pytest-asyncio |
|
|
|
|
, pytestCheckHook |
|
|
|
@ -27,7 +27,9 @@ buildPythonPackage rec { |
|
|
|
|
|
|
|
|
|
format = "pyproject"; |
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [ poetry ]; |
|
|
|
|
nativeBuildInputs = [ |
|
|
|
|
poetry-core |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ |
|
|
|
|
aiohttp |
|
|
|
@ -44,8 +46,17 @@ buildPythonPackage rec { |
|
|
|
|
pytestCheckHook |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
# Ignore the examples as they are prefixed with test_ |
|
|
|
|
pytestFlagsArray = [ "--ignore examples/" ]; |
|
|
|
|
postPatch = '' |
|
|
|
|
# https://github.com/bachya/aioguardian/pull/66 |
|
|
|
|
substituteInPlace pyproject.toml \ |
|
|
|
|
--replace 'asyncio_dgram = "^1.0.1"' 'asyncio_dgram = "^2.0.0"' |
|
|
|
|
# https://github.com/bachya/aioguardian/pull/67 |
|
|
|
|
substituteInPlace pyproject.toml \ |
|
|
|
|
--replace "poetry>=0.12" "poetry-core" |
|
|
|
|
''; |
|
|
|
|
|
|
|
|
|
disabledTestPaths = [ "examples/" ]; |
|
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "aioguardian" ]; |
|
|
|
|
|
|
|
|
|
meta = with lib; { |
|
|
|
|