2021-06-23 22:20:17 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
|
|
|
, aiohttp
|
|
|
|
, netifaces
|
|
|
|
, asynctest
|
|
|
|
, pytest-aiohttp
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-izone";
|
2021-06-26 23:09:33 +01:00
|
|
|
version = "1.1.6";
|
2021-06-23 22:20:17 +01:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Swamp-Ig";
|
|
|
|
repo = "pizone";
|
|
|
|
rev = "v${version}";
|
2021-06-26 23:09:33 +01:00
|
|
|
sha256 = "sha256-zgE1ccEPSa9nX0SEMN02VEGfnHexk/+jCJe7ugUL5UA=";
|
2021-06-23 22:20:17 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
netifaces
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
asynctest
|
|
|
|
pytest-aiohttp
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pizone" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A python interface to the iZone airconditioner controller";
|
|
|
|
homepage = "https://github.com/Swamp-Ig/pizone";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|