Fabian Affolter 2023-08-16 23:51:10 +02:00
parent 214c9de815
commit 2f29aa92b5

View file

@ -7,11 +7,12 @@
, pythonOlder , pythonOlder
, pytest-asyncio , pytest-asyncio
, pytestCheckHook , pytestCheckHook
, pytz
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "odp-amsterdam"; pname = "odp-amsterdam";
version = "5.1.1"; version = "5.2.0";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.9"; disabled = pythonOlder "3.9";
@ -20,13 +21,12 @@ buildPythonPackage rec {
owner = "klaasnicolaas"; owner = "klaasnicolaas";
repo = "python-odp-amsterdam"; repo = "python-odp-amsterdam";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-DaL2CTrhWqBwl3kktF1wndxzrreA24C3zXmp4ghf/4s="; hash = "sha256-iJjwxvlxzRpKy2P0A3mS2i05bues5YasP72HuZiuFyE=";
}; };
postPatch = '' postPatch = ''
substituteInPlace pyproject.toml \ substituteInPlace pyproject.toml \
--replace '"0.0.0"' '"${version}"' --replace '"0.0.0"' '"${version}"'
sed -i '/addopts/d' pyproject.toml sed -i '/addopts/d' pyproject.toml
''; '';
@ -36,6 +36,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [ propagatedBuildInputs = [
aiohttp aiohttp
pytz
]; ];
nativeCheckInputs = [ nativeCheckInputs = [