summary refs log tree commit diff
path: root/pkgs/development/python-modules/homematicip
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-11-29 11:16:13 +0100
committerJonathan Ringer <jonringer117@gmail.com>2021-11-30 18:52:52 -0800
commit88961280231fea495046f55cca10ccf692e1ffbd (patch)
treeacc04bc179d3dcc16c19ceccc25dc923b942daa9 /pkgs/development/python-modules/homematicip
parent75f7a59002b54bfc99233315e859013e9e4fa6ac (diff)
downloadnixpkgs-88961280231fea495046f55cca10ccf692e1ffbd.tar
nixpkgs-88961280231fea495046f55cca10ccf692e1ffbd.tar.gz
nixpkgs-88961280231fea495046f55cca10ccf692e1ffbd.tar.bz2
nixpkgs-88961280231fea495046f55cca10ccf692e1ffbd.tar.lz
nixpkgs-88961280231fea495046f55cca10ccf692e1ffbd.tar.xz
nixpkgs-88961280231fea495046f55cca10ccf692e1ffbd.tar.zst
nixpkgs-88961280231fea495046f55cca10ccf692e1ffbd.zip
python3Packages.homematicip: add support for async_timeout>4
Diffstat (limited to 'pkgs/development/python-modules/homematicip')
-rw-r--r--pkgs/development/python-modules/homematicip/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/homematicip/default.nix b/pkgs/development/python-modules/homematicip/default.nix
index e6759f498a3..cd7d523c2a7 100644
--- a/pkgs/development/python-modules/homematicip/default.nix
+++ b/pkgs/development/python-modules/homematicip/default.nix
@@ -17,6 +17,8 @@
 buildPythonPackage rec {
   pname = "homematicip";
   version = "1.0.1";
+  format = "setuptools";
+
   disabled = pythonOlder "3.6";
 
   src = fetchFromGitHub {
@@ -42,6 +44,11 @@ buildPythonPackage rec {
     pytestCheckHook
   ];
 
+  postPatch = ''
+    substituteInPlace homematicip/aio/connection.py \
+      --replace ", loop=self._loop" ""
+  '';
+
   disabledTests = [
     # Assert issues with datetime
     "test_contact_interface_device"
@@ -67,7 +74,9 @@ buildPythonPackage rec {
     "test_websocket"
   ];
 
-  pythonImportsCheck = [ "homematicip" ];
+  pythonImportsCheck = [
+    "homematicip"
+  ];
 
   meta = with lib; {
     description = "Python module for the homematicIP REST API";