From e1ce11ccc069cb14e04cda472c1d78f1bd288fe0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 6 Jan 2024 01:09:26 +0100 Subject: [PATCH 1/2] python311Packages.omnikinverter: 0.9.1 -> 1.0.0 Diff: https://github.com/klaasnicolaas/python-omnikinverter/compare/refs/tags/v0.9.1...v1.0.0 Changelog: https://github.com/klaasnicolaas/python-omnikinverter/releases/tag/v1.0.0 --- .../python-modules/omnikinverter/default.nix | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/omnikinverter/default.nix b/pkgs/development/python-modules/omnikinverter/default.nix index 292abc349ea0..c29afbae9fc0 100644 --- a/pkgs/development/python-modules/omnikinverter/default.nix +++ b/pkgs/development/python-modules/omnikinverter/default.nix @@ -12,18 +12,25 @@ buildPythonPackage rec { pname = "omnikinverter"; - version = "0.9.1"; - format = "pyproject"; + version = "1.0.0"; + pyproject = true; - disabled = pythonOlder "3.9"; + disabled = pythonOlder "3.11"; src = fetchFromGitHub { owner = "klaasnicolaas"; repo = "python-omnikinverter"; rev = "refs/tags/v${version}"; - hash = "sha256-Vjfnwk9iIe5j+s/zJHQ2X095Eexp/aKtIi/k0sK45q0="; + hash = "sha256-W9VeRhsCXLLgOgvJcNNCGNmPvakPtKHAtwQAGtYJbcY="; }; + postPatch = '' + # Upstream doesn't set a version for the pyproject.toml + substituteInPlace pyproject.toml \ + --replace "0.0.0" "${version}" \ + --replace "--cov" "" + ''; + nativeBuildInputs = [ poetry-core ]; @@ -39,13 +46,6 @@ buildPythonPackage rec { pytestCheckHook ]; - postPatch = '' - # Upstream doesn't set a version for the pyproject.toml - substituteInPlace pyproject.toml \ - --replace "0.0.0" "${version}" \ - --replace "--cov" "" - ''; - pythonImportsCheck = [ "omnikinverter" ]; From ae980a7653828d8a30156a643013a98bedc6fca7 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 6 Jan 2024 01:14:33 +0100 Subject: [PATCH 2/2] python311Packages.omnikinverter: enable darwin build --- pkgs/development/python-modules/omnikinverter/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/omnikinverter/default.nix b/pkgs/development/python-modules/omnikinverter/default.nix index c29afbae9fc0..4d9a2c97c566 100644 --- a/pkgs/development/python-modules/omnikinverter/default.nix +++ b/pkgs/development/python-modules/omnikinverter/default.nix @@ -24,6 +24,8 @@ buildPythonPackage rec { hash = "sha256-W9VeRhsCXLLgOgvJcNNCGNmPvakPtKHAtwQAGtYJbcY="; }; + __darwinAllowLocalNetworking = true; + postPatch = '' # Upstream doesn't set a version for the pyproject.toml substituteInPlace pyproject.toml \