From ca7b509dff37f6051357a45d2b50771d56308121 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Sun, 30 Aug 2020 20:55:35 +0200 Subject: [PATCH] pythonPackages.yeelight: init at 0.5.3 --- .../python-modules/yeelight/default.nix | 20 +++++++++++++++++++ .../home-assistant/component-packages.nix | 2 +- pkgs/top-level/python-packages.nix | 2 ++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/python-modules/yeelight/default.nix diff --git a/pkgs/development/python-modules/yeelight/default.nix b/pkgs/development/python-modules/yeelight/default.nix new file mode 100644 index 00000000000..4cc7056da19 --- /dev/null +++ b/pkgs/development/python-modules/yeelight/default.nix @@ -0,0 +1,20 @@ +{ stdenv, fetchPypi, buildPythonPackage, future, enum-compat }: + +buildPythonPackage rec { + pname = "yeelight"; + version = "0.5.3"; + + src = fetchPypi { + inherit pname version; + sha256 = "8d49846f0cede1e312cbcd1d0e44c42073910bbcadb31b87ce2a7d24dea3af38"; + }; + + propagatedBuildInputs = [ future enum-compat ]; + + meta = with stdenv.lib; { + description = "A Python library for controlling YeeLight RGB bulbs"; + homepage = "https://gitlab.com/stavros/python-yeelight/"; + license = licenses.asl20; + maintainers = with maintainers; [ nyanloutre ]; + }; +} diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 4e50373b2c9..3342c488c93 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -931,7 +931,7 @@ "yamaha_musiccast" = ps: with ps; [ ]; # missing inputs: pymusiccast "yandex_transport" = ps: with ps; [ ]; # missing inputs: aioymaps "yandextts" = ps: with ps; [ ]; - "yeelight" = ps: with ps; [ aiohttp-cors netdisco zeroconf ]; # missing inputs: yeelight + "yeelight" = ps: with ps; [ aiohttp-cors netdisco yeelight zeroconf ]; "yeelightsunflower" = ps: with ps; [ ]; # missing inputs: yeelightsunflower "yessssms" = ps: with ps; [ ]; # missing inputs: YesssSMS "yi" = ps: with ps; [ aioftp ha-ffmpeg ]; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index adea0006584..15bc2043d76 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7557,6 +7557,8 @@ in { ydiff = callPackage ../development/python-modules/ydiff { }; + yeelight = callPackage ../development/python-modules/yeelight { }; + yenc = callPackage ../development/python-modules/yenc { }; yfinance = callPackage ../development/python-modules/yfinance { };