Merge pull request #228957 from fabaff/eiswarnung-fix

python310Packages.eiswarnung: relax pytz constraint
This commit is contained in:
Weijia Wang 2023-04-30 01:07:56 +03:00 committed by GitHub
commit dc3d4fce47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,6 +25,13 @@ buildPythonPackage rec {
hash = "sha256-PVFAy34+UfNQNdzVdfvNiySrCTaKGuepnTINZYkOsuo=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace '"0.0.0"' '"${version}"' \
--replace 'addopts = "--cov"' "" \
--replace 'pytz = "^2022.7.1"' 'pytz = "*"'
'';
nativeBuildInputs = [
poetry-core
];
@ -41,12 +48,6 @@ buildPythonPackage rec {
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace '"0.0.0"' '"${version}"' \
--replace 'addopts = "--cov"' ""
'';
pythonImportsCheck = [
"eiswarnung"
];