about summary refs log tree commit diff
path: root/pkgs/development/python-modules/python-izone
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-11-26 01:04:12 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2021-11-26 01:04:12 +0100
commit8c00ef66595e9f434961f96673fe414f8631563f (patch)
tree68c8d3011de49a15b0a187d1e1236456088a1058 /pkgs/development/python-modules/python-izone
parente78259e45cdc7c197161793a2ed9f0a6732d4d62 (diff)
python3Packages.python-izone: add patch to support async_timeout>4
Diffstat (limited to 'pkgs/development/python-modules/python-izone')
-rw-r--r--pkgs/development/python-modules/python-izone/default.nix17
1 files changed, 15 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/python-izone/default.nix b/pkgs/development/python-modules/python-izone/default.nix
index 4bd1f988d4552..67aa8eb43512f 100644
--- a/pkgs/development/python-modules/python-izone/default.nix
+++ b/pkgs/development/python-modules/python-izone/default.nix
@@ -2,6 +2,7 @@
 , buildPythonPackage
 , pythonOlder
 , fetchFromGitHub
+, fetchpatch
 , aiohttp
 , netifaces
 , asynctest
@@ -12,6 +13,7 @@
 buildPythonPackage rec {
   pname = "python-izone";
   version = "1.1.6";
+  format = "setuptools";
 
   disabled = pythonOlder "3.5";
 
@@ -33,10 +35,21 @@ buildPythonPackage rec {
     pytestCheckHook
   ];
 
-  pythonImportsCheck = [ "pizone" ];
+  patches = [
+    # async_timeout 4.0.0 removes current_task, https://github.com/Swamp-Ig/pizone/pull/15
+    (fetchpatch {
+      name = "remove-current-task.patch";
+      url = "https://github.com/Swamp-Ig/pizone/commit/988998cf009a39938e4ee37079337b0c187977f2.patch";
+      sha256 = "nVCQBMc4ZE7CQsYC986wqvPPyA7zJ/g278jJrpaiAIw=";
+    })
+  ];
+
+  pythonImportsCheck = [
+    "pizone"
+  ];
 
   meta = with lib; {
-    description = "A python interface to the iZone airconditioner controller";
+    description = "Python interface to the iZone airconditioner controller";
     homepage = "https://github.com/Swamp-Ig/pizone";
     license = licenses.gpl3Plus;
     maintainers = with maintainers; [ dotlambda ];