python3Packages.aiogithubapi: relax backoff constraint, use legacy asyncio-mode for tests

main
Martin Weinelt 2 years ago committed by Sandro Jäckel
parent 54aea04762
commit b79055e582
No known key found for this signature in database
GPG Key ID: B1763F8651144063
  1. 17
      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"

Loading…
Cancel
Save