diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-06-06 10:05:49 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-06-06 10:05:49 +0200 |
commit | 466c28c81929672f2a885a045fb275d3e307cc91 (patch) | |
tree | 03cf0e196b773af68928c3b64a3ed449bcd849cb /pkgs/development/python-modules/aioguardian/default.nix | |
parent | 637c61c0a4bcf836c73c6b31856bb5ed44ec6f53 (diff) |
python3Packages.aioguardian: allow later asyncio_dgram releases
Diffstat (limited to 'pkgs/development/python-modules/aioguardian/default.nix')
-rw-r--r-- | pkgs/development/python-modules/aioguardian/default.nix | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/aioguardian/default.nix b/pkgs/development/python-modules/aioguardian/default.nix index 47b820161886a..388c856fc619d 100644 --- a/pkgs/development/python-modules/aioguardian/default.nix +++ b/pkgs/development/python-modules/aioguardian/default.nix @@ -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; { |