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/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index a54ba7d19e33..1c1e0d00ea47 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 ]; diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index e7c358fd7450..bcf66918b66a 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -489,6 +489,7 @@ in with py.pkgs; buildPythonApplication rec { "isy994" "izone" "jewish_calendar" + "keenetic_ndms2" "kira" "kmtronic" "knx" diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2fa985758e75..03ef966d2d5f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4684,6 +4684,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 { };