2021-11-20 09:40:43 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, bleak
|
|
|
|
, buildPythonPackage
|
|
|
|
, csrmesh
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "halohome";
|
2022-01-27 10:15:38 +00:00
|
|
|
version = "0.5.0";
|
|
|
|
format = "setuptools";
|
2021-11-20 09:40:43 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nayaverdier";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-01-27 10:15:38 +00:00
|
|
|
sha256 = "sha256-xnUOObqVg1E7mTDKHZMoC95KI9ZIn0YpkQjoASa5Dds=";
|
2021-11-20 09:40:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
bleak
|
|
|
|
csrmesh
|
|
|
|
];
|
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"halohome"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library to control Eaton HALO Home Smart Lights";
|
|
|
|
homepage = "https://github.com/nayaverdier/halohome";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|