home-assistant: support lightify component (#379007)

This commit is contained in:
Martin Weinelt
2025-02-04 00:29:57 +01:00
committed by GitHub
3 changed files with 38 additions and 1 deletions
@@ -0,0 +1,34 @@
{
buildPythonPackage,
fetchFromGitHub,
lib,
setuptools,
}:
buildPythonPackage rec {
pname = "lightify";
version = "1.0.7.3";
pyproject = true;
src = fetchFromGitHub {
owner = "tfriedel";
repo = "python-lightify";
tag = "v${version}";
hash = "sha256-zgDB1Tq4RYIeABZCjCcoB8NGt+ZhQFnFu655OghgpH0=";
};
build-system = [ setuptools ];
pythonImportsCheck = [ "lightify" ];
# tests access the network
doCheck = false;
meta = {
changelog = "https://github.com/tfriedel/python-lightify/releases/tag/${src.tag}";
description = "Library to work with OSRAM Lightify";
homepage = "https://github.com/tfriedel/python-lightify";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
@@ -4082,7 +4082,8 @@
]; # missing inputs: pyosoenergyapi
"osramlightify" =
ps: with ps; [
]; # missing inputs: lightify
lightify
];
"otbr" =
ps: with ps; [
aiohasupervisor
+2
View File
@@ -7499,6 +7499,8 @@ self: super: with self; {
lightgbm = callPackage ../development/python-modules/lightgbm { };
lightify = callPackage ../development/python-modules/lightify { };
lightning-utilities = callPackage ../development/python-modules/lightning-utilities { };
lightparam = callPackage ../development/python-modules/lightparam { };