Merge pull request #147437 from fabaff/fix-python-izone
python3Packages.python-izone: add patch to support async_timeout>4
This commit is contained in:
commit
0f43d69a55
@ -2,6 +2,7 @@
|
|||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
, aiohttp
|
, aiohttp
|
||||||
, netifaces
|
, netifaces
|
||||||
, asynctest
|
, asynctest
|
||||||
@ -12,6 +13,7 @@
|
|||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "python-izone";
|
pname = "python-izone";
|
||||||
version = "1.1.6";
|
version = "1.1.6";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
disabled = pythonOlder "3.5";
|
disabled = pythonOlder "3.5";
|
||||||
|
|
||||||
@ -33,10 +35,21 @@ buildPythonPackage rec {
|
|||||||
pytestCheckHook
|
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; {
|
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";
|
homepage = "https://github.com/Swamp-Ig/pizone";
|
||||||
license = licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
maintainers = with maintainers; [ dotlambda ];
|
maintainers = with maintainers; [ dotlambda ];
|
||||||
|
Loading…
Reference in New Issue
Block a user