From c3d8f2223c6e5624f6198dd3e75ce2f22e8c4f4f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 17 Feb 2021 20:15:06 +0100 Subject: [PATCH 1/2] python3Packages.pyeight: init at 0.1.5 --- .../python-modules/pyeight/default.nix | 36 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/python-modules/pyeight/default.nix diff --git a/pkgs/development/python-modules/pyeight/default.nix b/pkgs/development/python-modules/pyeight/default.nix new file mode 100644 index 000000000000..b3a2de5ed404 --- /dev/null +++ b/pkgs/development/python-modules/pyeight/default.nix @@ -0,0 +1,36 @@ +{ lib +, aiohttp +, async-timeout +, buildPythonPackage +, fetchFromGitHub +, isPy3k +}: + +buildPythonPackage rec { + pname = "pyeight"; + version = "0.1.5"; + disabled = !isPy3k; + + src = fetchFromGitHub { + owner = "mezz64"; + repo = "pyEight"; + rev = version; + sha256 = "1wzmjqs8zx611b71ip7a0phyas96vxpq8xpnhrirfi9l09kdjgsw"; + }; + + propagatedBuildInputs = [ + aiohttp + async-timeout + ]; + + # Project has no tests + doCheck = false; + pythonImportsCheck = [ "pyeight" ]; + + meta = with lib; { + description = "Python library to interface with the Eight Sleep API"; + homepage = "https://github.com/mezz64/pyEight"; + 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 276dc923acc6..d500e2ad4d75 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5398,6 +5398,8 @@ in { pyee = callPackage ../development/python-modules/pyee { }; + pyeight = callPackage ../development/python-modules/pyeight { }; + pyelftools = callPackage ../development/python-modules/pyelftools { }; pyemd = callPackage ../development/python-modules/pyemd { }; From a35f3ecae1c1342689c41afebcd30145e3a0a46b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 17 Feb 2021 20:16:42 +0100 Subject: [PATCH 2/2] home-assistant: update 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 22f3066ee4ab..196e8426c1bb 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -209,7 +209,7 @@ "ee_brightbox" = ps: with ps; [ ]; # missing inputs: eebrightbox "efergy" = ps: with ps; [ ]; "egardia" = ps: with ps; [ ]; # missing inputs: pythonegardia - "eight_sleep" = ps: with ps; [ ]; # missing inputs: pyeight + "eight_sleep" = ps: with ps; [ pyeight ]; "elgato" = ps: with ps; [ ]; # missing inputs: elgato "eliqonline" = ps: with ps; [ ]; # missing inputs: eliqonline "elkm1" = ps: with ps; [ ]; # missing inputs: elkm1-lib