summary refs log tree commit diff
diff options
context:
space:
mode:
authorTheodore Ni <3806110+tjni@users.noreply.github.com>2023-08-23 14:30:18 -0700
committerTheodore Ni <3806110+tjni@users.noreply.github.com>2023-08-23 17:22:56 -0700
commitf851b3a62a96ac58690b4c8c6c422676e65fd6c6 (patch)
treeae6b1c38cb535b5b064e00e21de0e2f0008f205a
parent333c180f4a4a88cd7ccdb92a62822cebd1ad8e1a (diff)
downloadnixpkgs-f851b3a62a96ac58690b4c8c6c422676e65fd6c6.tar
nixpkgs-f851b3a62a96ac58690b4c8c6c422676e65fd6c6.tar.gz
nixpkgs-f851b3a62a96ac58690b4c8c6c422676e65fd6c6.tar.bz2
nixpkgs-f851b3a62a96ac58690b4c8c6c422676e65fd6c6.tar.lz
nixpkgs-f851b3a62a96ac58690b4c8c6c422676e65fd6c6.tar.xz
nixpkgs-f851b3a62a96ac58690b4c8c6c422676e65fd6c6.tar.zst
nixpkgs-f851b3a62a96ac58690b4c8c6c422676e65fd6c6.zip
python3.pkgs.python-homewizard-energy: remove setuptools dependency
-rw-r--r--pkgs/development/python-modules/python-homewizard-energy/default.nix12
1 files changed, 12 insertions, 0 deletions
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