@@ -2,6 +2,7 @@
22, buildPythonPackage
33, pythonOlder
44, fetchFromGitHub
5+, fetchpatch
56, aiohttp
67, netifaces
78, asynctest
@@ -12,6 +13,7 @@
1213buildPythonPackage rec {
1314 pname = "python-izone";
1415 version = "1.1.6";
16+ format = "setuptools";
1517
1618 disabled = pythonOlder "3.5";
1719
@@ -33,10 +35,21 @@ buildPythonPackage rec {
3335 pytestCheckHook
3436 ];
3537
36− pythonImportsCheck = [ "pizone" ];
38+ patches = [
39+ # async_timeout 4.0.0 removes current_task, https://github.com/Swamp-Ig/pizone/pull/15
40+ (fetchpatch {
41+ name = "remove-current-task.patch";
42+ url = "https://github.com/Swamp-Ig/pizone/commit/988998cf009a39938e4ee37079337b0c187977f2.patch";
43+ sha256 = "nVCQBMc4ZE7CQsYC986wqvPPyA7zJ/g278jJrpaiAIw=";
44+ })
45+ ];
46+
47+ pythonImportsCheck = [
48+ "pizone"
49+ ];
3750
3851 meta = with lib; {
39− description = "A python interface to the iZone airconditioner controller";
52+ description = "Python interface to the iZone airconditioner controller";
4053 homepage = "https://github.com/Swamp-Ig/pizone";
4154 license = licenses.gpl3Plus;
4255 maintainers = with maintainers; [ dotlambda ];