1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, aiohttp 6, netifaces 7, asynctest 8, pytest-aiohttp 9, pytestCheckHook 10}: 11 12buildPythonPackage rec { 13 pname = "python-izone"; 14 version = "1.1.6"; 15 16 disabled = pythonOlder "3.5"; 17 18 src = fetchFromGitHub { 19 owner = "Swamp-Ig"; 20 repo = "pizone"; 21 rev = "v${version}"; 22 sha256 = "sha256-zgE1ccEPSa9nX0SEMN02VEGfnHexk/+jCJe7ugUL5UA="; 23 }; 24 25 propagatedBuildInputs = [ 26 aiohttp 27 netifaces 28 ]; 29 30 checkInputs = [ 31 asynctest 32 pytest-aiohttp 33 pytestCheckHook 34 ]; 35 36 pythonImportsCheck = [ "pizone" ]; 37 38 meta = with lib; { 39 description = "A python interface to the iZone airconditioner controller"; 40 homepage = "https://github.com/Swamp-Ig/pizone"; 41 license = licenses.gpl3Plus; 42 maintainers = with maintainers; [ dotlambda ]; 43 }; 44}