From 36691620aaf32868b278d7826c05d00caa3fc287 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 24 Jun 2021 11:13:39 +0200 Subject: [PATCH 1/3] python3Packages.ndms2-client: init at 0.1.1 --- .../python-modules/ndms2-client/default.nix | 30 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/development/python-modules/ndms2-client/default.nix diff --git a/pkgs/development/python-modules/ndms2-client/default.nix b/pkgs/development/python-modules/ndms2-client/default.nix new file mode 100644 index 000000000000..d29946a5685f --- /dev/null +++ b/pkgs/development/python-modules/ndms2-client/default.nix @@ -0,0 +1,30 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "ndms2-client"; + version = "0.1.1"; + + src = fetchFromGitHub { + owner = "foxel"; + repo = "python_ndms2_client"; + rev = version; + sha256 = "1sc39d10hm1y8xf3gdqzq1akrx94k590l106242j9bvfqyr8lrk9"; + }; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ "ndms2_client" ]; + + meta = with lib; { + description = "Keenetic NDMS 2.x and 3.x client"; + homepage = "https://github.com/foxel/python_ndms2_client"; + 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..0401b6a743d0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4676,6 +4676,8 @@ in { ndjson = callPackage ../development/python-modules/ndjson { }; + ndms2-client = callPackage ../development/python-modules/ndms2-client { }; + ndspy = callPackage ../development/python-modules/ndspy { }; ndtypes = callPackage ../development/python-modules/ndtypes { }; From 6eb1509c82dc76610dcf06a887f65bd4a9043e6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 24 Jun 2021 11:14:01 +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..7ef95eba6ac2 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -421,7 +421,7 @@ "kaiterra" = ps: with ps; [ ]; # missing inputs: kaiterra-async-client "kankun" = ps: with ps; [ ]; "keba" = ps: with ps; [ ]; # missing inputs: keba-kecontact - "keenetic_ndms2" = ps: with ps; [ ]; # missing inputs: ndms2_client + "keenetic_ndms2" = ps: with ps; [ ndms2-client ]; "kef" = ps: with ps; [ aiokef getmac ]; "keyboard" = ps: with ps; [ ]; # missing inputs: pyuserinput "keyboard_remote" = ps: with ps; [ aionotify evdev ]; From 47763e0bc3a21b9e4bc09538978d1731edfc2c2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 24 Jun 2021 11:16:25 +0200 Subject: [PATCH 3/3] home-assistant: test keenetic_ndms2 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..2eae0319ad05 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -488,6 +488,7 @@ in with py.pkgs; buildPythonApplication rec { "islamic_prayer_times" "isy994" "jewish_calendar" + "keenetic_ndms2" "kira" "kmtronic" "knx"