summary refs log tree commit diff
diff options
context:
space:
mode:
authorMartin Weinelt <mweinelt@users.noreply.github.com>2022-05-23 01:01:04 +0200
committerGitHub <noreply@github.com>2022-05-23 01:01:04 +0200
commitcb06de526c36c799ab8a61c4d5612b7903434ab9 (patch)
treeafd3011a06d2b8a6fbc6f2f6d9922f4174039030
parent7e2faba3d9353618b65605537d914e34dcde7e06 (diff)
parentd9aa9aa45c44d7c18bc5a7eb747d99e5e6533f0f (diff)
Merge pull request #174056 from dotlambda/airtouch4pyapi-patch
python3Packages.airtouch4pyapi: make compatible with Home Assistant
-rw-r--r--pkgs/development/python-modules/airtouch4pyapi/default.nix9
-rw-r--r--pkgs/servers/home-assistant/tests.nix1
2 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/airtouch4pyapi/default.nix b/pkgs/development/python-modules/airtouch4pyapi/default.nix
index 193070ac72613..1c567181f9b48 100644
--- a/pkgs/development/python-modules/airtouch4pyapi/default.nix
+++ b/pkgs/development/python-modules/airtouch4pyapi/default.nix
@@ -1,6 +1,7 @@
 { lib
 , buildPythonPackage
 , fetchFromGitHub
+, fetchpatch
 , numpy
 , pythonOlder
 }:
@@ -20,6 +21,14 @@ buildPythonPackage rec {
     sha256 = "17c7fm72p085pg9msvsfdggbskvm12a6jlb5bw1cndrqsqcrxywx";
   };
 
+  patches = [
+    # https://github.com/LonePurpleWolf/airtouch4pyapi/pull/10
+    (fetchpatch {
+      url = "https://github.com/LonePurpleWolf/airtouch4pyapi/commit/5b5d91fad63495c83422e7a850897946ac95b25d.patch";
+      hash = "sha256-tVlCLXuOJSqjbs0jj0iHCIXWZE8wmMV3ChzmE6uq3SM=";
+    })
+  ];
+
   propagatedBuildInputs = [
     numpy
   ];
diff --git a/pkgs/servers/home-assistant/tests.nix b/pkgs/servers/home-assistant/tests.nix
index 26f67e69a546f..d8436bcc9402f 100644
--- a/pkgs/servers/home-assistant/tests.nix
+++ b/pkgs/servers/home-assistant/tests.nix
@@ -71,7 +71,6 @@ in lib.listToAttrs (map (component: lib.nameValuePair component (
 
     meta = old.meta // {
       broken = lib.elem component [
-        "airtouch4"
         "bsblan"
         "dnsip"
         "efergy"