2021-06-23 21:20:17 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
|
|
|
, aiohttp
|
|
|
|
, netifaces
|
2021-12-03 21:45:43 +00:00
|
|
|
, pytest-aio
|
|
|
|
, pytest-asyncio
|
2021-06-23 21:20:17 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-izone";
|
2022-01-24 21:43:06 +00:00
|
|
|
version = "1.2.4";
|
2021-11-26 00:04:12 +00:00
|
|
|
format = "setuptools";
|
2021-06-23 21:20:17 +00:00
|
|
|
|
2021-12-03 21:45:43 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2021-06-23 21:20:17 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Swamp-Ig";
|
|
|
|
repo = "pizone";
|
|
|
|
rev = "v${version}";
|
2022-01-24 21:43:06 +00:00
|
|
|
hash = "sha256-HV8aQlwJ7VbGlJU0HpS9fK/QnRfYrk4ijKTGPWj0Jww=";
|
2021-06-23 21:20:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
netifaces
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-12-03 21:45:43 +00:00
|
|
|
pytest-aio
|
|
|
|
pytest-asyncio
|
2021-06-23 21:20:17 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-12-29 14:03:47 +00:00
|
|
|
doCheck = false; # most tests access network
|
2021-11-26 00:04:12 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pizone"
|
|
|
|
];
|
2021-06-23 21:20:17 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-11-26 00:04:12 +00:00
|
|
|
description = "Python interface to the iZone airconditioner controller";
|
2021-06-23 21:20:17 +00:00
|
|
|
homepage = "https://github.com/Swamp-Ig/pizone";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|