Merge pull request #277267 from fabaff/eiswarnung-bump

python311Packages.eiswarnung: 1.2.0 -> 2.0.0
This commit is contained in:
Fabian Affolter 2023-12-31 11:04:49 +01:00 committed by GitHub
commit 486cff78c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,23 +13,25 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "eiswarnung"; pname = "eiswarnung";
version = "1.2.0"; version = "2.0.0";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.9"; disabled = pythonOlder "3.11";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "klaasnicolaas"; owner = "klaasnicolaas";
repo = "python-eiswarnung"; repo = "python-eiswarnung";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-PVFAy34+UfNQNdzVdfvNiySrCTaKGuepnTINZYkOsuo="; hash = "sha256-/61qrRfD7/gaEcvFot34HYXOVLWwTDi/fvcgHDTv9u0=";
}; };
__darwinAllowLocalNetworking = true;
postPatch = '' postPatch = ''
substituteInPlace pyproject.toml \ substituteInPlace pyproject.toml \
--replace '"0.0.0"' '"${version}"' \ --replace '"0.0.0"' '"${version}"' \
--replace 'addopts = "--cov"' "" \ --replace 'addopts = "--cov"' "" \
--replace 'pytz = "^2022.7.1"' 'pytz = "*"' --replace 'pytz = ">=2022.7.1,<2024.0.0"' 'pytz = "*"'
''; '';
nativeBuildInputs = [ nativeBuildInputs = [