Fabian Affolter 2024-06-29 22:40:38 +02:00
parent a7b235322e
commit 9adf492368

View File

@ -9,13 +9,14 @@
pytest-freezer,
pytestCheckHook,
pythonOlder,
syrupy,
yarl,
}:
buildPythonPackage rec {
pname = "energyzero";
version = "2.1.0";
format = "pyproject";
version = "2.1.1";
pyproject = true;
disabled = pythonOlder "3.11";
@ -23,16 +24,16 @@ buildPythonPackage rec {
owner = "klaasnicolaas";
repo = "python-energyzero";
rev = "refs/tags/v${version}";
hash = "sha256-NZbCiLCZC+hTcV0twOeCoKKD3eZ0/ZzPTnVpFyMLSfw=";
hash = "sha256-KOeYdTruD8AN/NkLEKKJDUB/JkOoQwfAMZkp/RvvUQE=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace '"0.0.0"' '"${version}"' \
--replace 'addopts = "--cov"' ""
--replace-fail '"0.0.0"' '"${version}"' \
--replace-fail 'addopts = "--cov"' ""
'';
nativeBuildInputs = [ poetry-core ];
build-system = [ poetry-core ];
propagatedBuildInputs = [
aiohttp
@ -44,6 +45,7 @@ buildPythonPackage rec {
pytest-asyncio
pytest-freezer
pytestCheckHook
syrupy
];
pythonImportsCheck = [ "energyzero" ];