From f851b3a62a96ac58690b4c8c6c422676e65fd6c6 Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Wed, 23 Aug 2023 14:30:18 -0700 Subject: python3.pkgs.python-homewizard-energy: remove setuptools dependency --- .../python-modules/python-homewizard-energy/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkgs/development/python-modules/python-homewizard-energy/default.nix b/pkgs/development/python-modules/python-homewizard-energy/default.nix index bfb53c92df4..c6b5f1ec453 100644 --- a/pkgs/development/python-modules/python-homewizard-energy/default.nix +++ b/pkgs/development/python-modules/python-homewizard-energy/default.nix @@ -4,6 +4,7 @@ , awesomeversion , buildPythonPackage , fetchFromGitHub +, fetchpatch , poetry-core , protobuf , pytest-asyncio @@ -25,6 +26,15 @@ buildPythonPackage rec { hash = "sha256-XTSnIL/hBL1Rsyv/tBce/WCvA3n7mZern0v3i6gTOeA="; }; + patches = [ + # https://github.com/DCSBL/python-homewizard-energy/pull/235 + (fetchpatch { + name = "remove-setuptools-dependency.patch"; + url = "https://github.com/DCSBL/python-homewizard-energy/commit/b006b0bc1f3d0b4a7569654a1afa90dd4cffaf18.patch"; + hash = "sha256-WQeepxiYnBfFcQAmrc3pavBz5j1Qo0HmUcOxsK/pr50="; + }) + ]; + nativeBuildInputs = [ poetry-core ]; @@ -34,6 +44,8 @@ buildPythonPackage rec { aiohttp ]; + __darwinAllowLocalNetworking = true; + nativeCheckInputs = [ aresponses pytest-asyncio -- cgit 1.4.1