depot/third_party/nixpkgs/pkgs/development/python-modules/greeclimate/default.nix
Default email bb584b27e9 Project import generated by Copybara.
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
2022-04-15 03:41:22 +02:00

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 ];
};
}