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

This commit is contained in:
Martin Weinelt
2022-09-19 16:05:46 +02:00
committed by Sandro Jäckel
parent 54aea04762
commit b79055e582
@@ -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"