about summary refs log tree commit diff
path: root/pkgs/development/python-modules/hass-nabucasa/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/hass-nabucasa/default.nix')
-rw-r--r--pkgs/development/python-modules/hass-nabucasa/default.nix14
1 files changed, 8 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/hass-nabucasa/default.nix b/pkgs/development/python-modules/hass-nabucasa/default.nix
index e27ef7ffce6b..edb90b477d0e 100644
--- a/pkgs/development/python-modules/hass-nabucasa/default.nix
+++ b/pkgs/development/python-modules/hass-nabucasa/default.nix
@@ -7,6 +7,7 @@
 , ciso8601
 , cryptography
 , fetchFromGitHub
+, fetchpatch
 , pycognito
 , pytest-aiohttp
 , pytest-timeout
@@ -32,12 +33,13 @@ buildPythonPackage rec {
     hash = "sha256-r4Huvn9mBqnASpUd+drwORE+fApLV/l6Y3aO/UIiEC8=";
   };
 
-  postPatch = ''
-    substituteInPlace setup.py \
-      --replace "acme==" "acme>=" \
-      --replace "pycognito==" "pycognito>=" \
-      --replace "snitun==" "snitun>=" \
-  '';
+  patches = [
+    (fetchpatch {
+      # Add missing wait_for_close mock in AiohttpClientMockResponse
+      url = "https://github.com/NabuCasa/hass-nabucasa/commit/097607e0fe30932ca5cba0c50fda125f90f5f3de.patch";
+      hash = "sha256-ZSh+1kGBb6ltNnd0RaDECXiJDEGJBOw1wN2HXPgfy+o=";
+    })
+  ];
 
   nativeBuildInputs = [
     setuptools