1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 aiohttp, 7 netifaces, 8 pytest-aio, 9 pytest-asyncio, 10 pytestCheckHook, 11 setuptools-scm, 12}: 13 14buildPythonPackage rec { 15 pname = "python-izone"; 16 version = "1.2.9"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.8"; 20 21 src = fetchFromGitHub { 22 owner = "Swamp-Ig"; 23 repo = "pizone"; 24 tag = "v${version}"; 25 hash = "sha256-0rj+tKn2pbFe+nczTMGLwIwmc4jCznGGF4/IMjlEvQg="; 26 }; 27 28 nativeBuildInputs = [ setuptools-scm ]; 29 30 propagatedBuildInputs = [ 31 aiohttp 32 netifaces 33 ]; 34 35 nativeCheckInputs = [ 36 pytest-aio 37 pytest-asyncio 38 pytestCheckHook 39 ]; 40 41 doCheck = false; # most tests access network 42 43 pythonImportsCheck = [ "pizone" ]; 44 45 meta = with lib; { 46 description = "Python interface to the iZone airconditioner controller"; 47 homepage = "https://github.com/Swamp-Ig/pizone"; 48 license = licenses.gpl3Plus; 49 maintainers = with maintainers; [ dotlambda ]; 50 }; 51}