From 1e27d0aed344fe4c2c32b81932022c4248e9a4c4 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 5 Jan 2021 13:17:26 +0100 Subject: [PATCH 1/2] python3Packages.pyeverlights: init at 0.1.0 --- .../python-modules/pyeverlights/default.nix | 30 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/development/python-modules/pyeverlights/default.nix diff --git a/pkgs/development/python-modules/pyeverlights/default.nix b/pkgs/development/python-modules/pyeverlights/default.nix new file mode 100644 index 000000000000..00b9f8fb0154 --- /dev/null +++ b/pkgs/development/python-modules/pyeverlights/default.nix @@ -0,0 +1,30 @@ +{ lib +, aiohttp +, buildPythonPackage +, fetchFromGitHub +}: + +buildPythonPackage rec { + pname = "pyeverlights"; + version = "0.1.0"; + + src = fetchFromGitHub { + owner = "joncar"; + repo = pname; + rev = version; + sha256 = "16xpq933j8yydq78fnf4f7ivyw5a45ix4mfycpmm91aj549p6pm0"; + }; + + propagatedBuildInputs = [ aiohttp ]; + + # no tests are present + doCheck = false; + pythonImportsCheck = [ "pyeverlights" ]; + + meta = with lib; { + description = "Python module for interfacing with an EverLights control box"; + homepage = "https://github.com/joncar/pyeverlights"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 90f41d6edaf4..ce543237430b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6169,6 +6169,8 @@ in { python-xmp-toolkit = callPackage ../development/python-modules/python-xmp-toolkit { }; + pyeverlights = callPackage ../development/python-modules/pyeverlights { }; + pytimeparse = callPackage ../development/python-modules/pytimeparse { }; pytmx = callPackage ../development/python-modules/pytmx { }; From 77c1a017048f672503f5452a5c4e076d2de70b81 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 5 Jan 2021 13:18:30 +0100 Subject: [PATCH 2/2] home-assistant: add pyeverlights to component-packages --- pkgs/servers/home-assistant/component-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 855e52cdbd84..8830139d120b 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -234,7 +234,7 @@ "essent" = ps: with ps; [ ]; # missing inputs: PyEssent "etherscan" = ps: with ps; [ ]; # missing inputs: python-etherscan-api "eufy" = ps: with ps; [ ]; # missing inputs: lakeside - "everlights" = ps: with ps; [ ]; # missing inputs: pyeverlights + "everlights" = ps: with ps; [ pyeverlights ]; "evohome" = ps: with ps; [ ]; # missing inputs: evohome-async "ezviz" = ps: with ps; [ ]; # missing inputs: pyezviz "facebook" = ps: with ps; [ ];