From 14de1392aa1578d77c04a86a0fe1cb1288cb37eb Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Sun, 30 Aug 2020 20:55:03 +0200 Subject: [PATCH 1/2] pythonPackages.pysqueezebox: init at 0.4.0 --- .../python-modules/pysqueezebox/default.nix | 27 +++++++++++++++++++ .../home-assistant/component-packages.nix | 2 +- pkgs/top-level/python-packages.nix | 2 ++ 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/python-modules/pysqueezebox/default.nix diff --git a/pkgs/development/python-modules/pysqueezebox/default.nix b/pkgs/development/python-modules/pysqueezebox/default.nix new file mode 100644 index 00000000000..33149e99e92 --- /dev/null +++ b/pkgs/development/python-modules/pysqueezebox/default.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchPypi, buildPythonPackage, pythonOlder, aiohttp }: + +buildPythonPackage rec { + pname = "pysqueezebox"; + version = "0.4.0"; + disabled = pythonOlder "3.6"; + + src = fetchPypi { + inherit pname version; + sha256 = "02d73e98314a63a38c314d40942a0b098fb59d2f08ac39b2627cfa73f785cf0d"; + }; + + propagatedBuildInputs = [ + aiohttp + ]; + + # No tests in the Pypi distribution + doCheck = false; + pythonImportsCheck = [ "pysqueezebox" ]; + + meta = with stdenv.lib; { + description = "Asynchronous library to control Logitech Media Server"; + homepage = "https://github.com/rajlaud/pysqueezebox"; + 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 4a6989989ae..4e50373b2c9 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -755,7 +755,7 @@ "spotcrime" = ps: with ps; [ ]; # missing inputs: spotcrime "spotify" = ps: with ps; [ aiohttp-cors spotipy ]; "sql" = ps: with ps; [ sqlalchemy ]; - "squeezebox" = ps: with ps; [ ]; # missing inputs: pysqueezebox + "squeezebox" = ps: with ps; [ pysqueezebox ]; "ssdp" = ps: with ps; [ aiohttp-cors defusedxml netdisco zeroconf ]; "starline" = ps: with ps; [ ]; # missing inputs: starline "starlingbank" = ps: with ps; [ ]; # missing inputs: starlingbank diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c4ad9f1669d..adea0006584 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5366,6 +5366,8 @@ in { pysqlite = callPackage ../development/python-modules/pysqlite { }; + pysqueezebox = callPackage ../development/python-modules/pysqueezebox { }; + pysrim = callPackage ../development/python-modules/pysrim { }; pysrt = callPackage ../development/python-modules/pysrt { }; From ca7b509dff37f6051357a45d2b50771d56308121 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Sun, 30 Aug 2020 20:55:35 +0200 Subject: [PATCH 2/2] 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 { };