From 9adf4923684860443bc3bc4afdc8635ab0491851 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 29 Jun 2024 22:40:38 +0200 Subject: [PATCH] python312Packages.energyzero: 2.1.1 -> 2.1.1 Diff: https://github.com/klaasnicolaas/python-energyzero/compare/refs/tags/v2.1.1...v2.1.1 Changelog: https://github.com/klaasnicolaas/python-energyzero/releases/tag/v2.1.1 --- .../python-modules/energyzero/default.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/energyzero/default.nix b/pkgs/development/python-modules/energyzero/default.nix index a5ebbbf93678..262691535d50 100644 --- a/pkgs/development/python-modules/energyzero/default.nix +++ b/pkgs/development/python-modules/energyzero/default.nix @@ -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" ];