ce641f4048
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
49 lines
957 B
Nix
49 lines
957 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, netifaces
|
|
, pycryptodome
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "greeclimate";
|
|
version = "1.0.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cmroche";
|
|
repo = "greeclimate";
|
|
rev = version;
|
|
sha256 = "sha256-zaa3Z6w1BdmOV1otoewc1Zpvltnn5QDJHkAVldZCQlY=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
netifaces
|
|
pycryptodome
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"greeclimate"
|
|
"greeclimate.device"
|
|
"greeclimate.discovery"
|
|
"greeclimate.exceptions"
|
|
"greeclimate.network"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Discover, connect and control Gree based minisplit systems";
|
|
homepage = "https://github.com/cmroche/greeclimate";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|