841d9c7fc1
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
44 lines
827 B
Nix
44 lines
827 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, aiohttp
|
|
, netifaces
|
|
, asynctest
|
|
, pytest-aiohttp
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-izone";
|
|
version = "1.1.6";
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Swamp-Ig";
|
|
repo = "pizone";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-zgE1ccEPSa9nX0SEMN02VEGfnHexk/+jCJe7ugUL5UA=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|