diff --git a/pkgs/development/python-modules/lightify/default.nix b/pkgs/development/python-modules/lightify/default.nix new file mode 100644 index 000000000000..13bd632a991e --- /dev/null +++ b/pkgs/development/python-modules/lightify/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 3854bdbef08c..1e509e777caf 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -4082,7 +4082,8 @@ ]; # missing inputs: pyosoenergyapi "osramlightify" = ps: with ps; [ - ]; # missing inputs: lightify + lightify + ]; "otbr" = ps: with ps; [ aiohasupervisor diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9715a340ff60..421cd74f94b4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };