bb584b27e9
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
49 lines
971 B
Nix
49 lines
971 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, netifaces
|
|
, pycryptodome
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "greeclimate";
|
|
version = "1.1.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cmroche";
|
|
repo = "greeclimate";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-TFsuzw9twhoGrgOnTNSmYWqsUW4oqY+SGvrvPUT4tZY=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|