diff --git a/pkgs/development/python-modules/aiogithubapi/default.nix b/pkgs/development/python-modules/aiogithubapi/default.nix index 38bd95989f6a..f4b8c306c1ab 100644 --- a/pkgs/development/python-modules/aiogithubapi/default.nix +++ b/pkgs/development/python-modules/aiogithubapi/default.nix @@ -25,6 +25,14 @@ buildPythonPackage rec { hash = "sha256-5gKANZtDhIoyfyLdS15JDWTxHBFkaHDUlbVVhRs7MSE="; }; + postPatch = '' + # Upstream is releasing with the help of a CI to PyPI, GitHub releases + # are not in their focus + substituteInPlace pyproject.toml \ + --replace 'version = "0"' 'version = "${version}"' \ + --replace 'backoff = "^1.10.0"' 'backoff = "*"' + ''; + nativeBuildInputs = [ poetry-core ]; @@ -41,12 +49,9 @@ buildPythonPackage rec { pytestCheckHook ]; - postPatch = '' - # Upstream is releasing with the help of a CI to PyPI, GitHub releases - # are not in their focus - substituteInPlace pyproject.toml \ - --replace 'version = "0"' 'version = "${version}"' - ''; + pytestFlagsArray = [ + "--asyncio-mode=legacy" + ]; pythonImportsCheck = [ "aiogithubapi"