From 05b9351c292d5590660a5e024044d64e7cb6fe3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 24 Jun 2021 13:07:36 +0200 Subject: [PATCH 1/3] python3Packages.konnected: init at 1.2.0 --- .../python-modules/konnected/default.nix | 31 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/development/python-modules/konnected/default.nix diff --git a/pkgs/development/python-modules/konnected/default.nix b/pkgs/development/python-modules/konnected/default.nix new file mode 100644 index 000000000000..b2117aab2d5d --- /dev/null +++ b/pkgs/development/python-modules/konnected/default.nix @@ -0,0 +1,31 @@ +{ lib +, buildPythonPackage +, fetchPypi +, aiohttp +}: + +buildPythonPackage rec { + pname = "konnected"; + version = "1.2.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "b8b4e15c3228b01c9fad3651e09fea1654357ae8c333096e759a1b7d0eb4e789"; + }; + + propagatedBuildInputs = [ + aiohttp + ]; + + # no tests implemented + doCheck = false; + + pythonImportsCheck = [ "konnected" ]; + + meta = with lib; { + description = "Async Python library for interacting with Konnected home automation controllers"; + homepage = "https://github.com/konnected-io/konnected-py"; + license = licenses.mit; + maintainers = with maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4479410af61e..6741bc4f9bf8 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3872,6 +3872,8 @@ in { kombu = callPackage ../development/python-modules/kombu { }; + konnected = callPackage ../development/python-modules/konnected { }; + korean-lunar-calendar = callPackage ../development/python-modules/korean-lunar-calendar { }; kubernetes = callPackage ../development/python-modules/kubernetes { }; From fade118376977a91cec96ef2d854a9b84f575fa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 24 Jun 2021 13:08:04 +0200 Subject: [PATCH 2/3] home-assistant: update component-packages.nix --- 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 0e6c44507356..9e1366e74d19 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -430,7 +430,7 @@ "kmtronic" = ps: with ps; [ pykmtronic ]; "knx" = ps: with ps; [ xknx ]; "kodi" = ps: with ps; [ pykodi ]; - "konnected" = ps: with ps; [ aiohttp-cors ]; # missing inputs: konnected + "konnected" = ps: with ps; [ aiohttp-cors konnected ]; "kostal_plenticore" = ps: with ps; [ ]; # missing inputs: kostal_plenticore "kraken" = ps: with ps; [ ]; # missing inputs: krakenex pykrakenapi "kulersky" = ps: with ps; [ pykulersky ]; From e66619bdf5b3cd9bff85c107831a179c1317da76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 24 Jun 2021 13:10:29 +0200 Subject: [PATCH 3/3] home-assistant: test konnected component --- pkgs/servers/home-assistant/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index 3091358bde5b..342ed53807ef 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -492,6 +492,7 @@ in with py.pkgs; buildPythonApplication rec { "kmtronic" "knx" "kodi" + "konnected" "kulersky" "lastfm" "lcn"