From e5a5b0de7dad339f23e30a061551d545a7340c93 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Tue, 19 Aug 2025 23:30:17 -0700 Subject: [PATCH 1/2] python3Packages.numato-gpio: init at 0.14.0 --- .../python-modules/numato-gpio/default.nix | 52 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 54 insertions(+) create mode 100644 pkgs/development/python-modules/numato-gpio/default.nix diff --git a/pkgs/development/python-modules/numato-gpio/default.nix b/pkgs/development/python-modules/numato-gpio/default.nix new file mode 100644 index 000000000000..126e3993635d --- /dev/null +++ b/pkgs/development/python-modules/numato-gpio/default.nix @@ -0,0 +1,52 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + pyserial, + rich, + pytestCheckHook, +}: + +buildPythonPackage rec { + pname = "numato-gpio"; + version = "0.14.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "clssn"; + repo = "numato-gpio"; + tag = "v${version}"; + hash = "sha256-9kbPEtJOQhCxYh8cjyCAufV63mV7ZF1x7CdUyJLfqII="; + }; + + build-system = [ + hatchling + ]; + + dependencies = [ + pyserial + rich + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + disabledTests = [ + # Exclude system tests that require hardware + "sys_tests" + ]; + + pythonImportsCheck = [ + "numato_gpio" + ]; + + meta = { + description = "Python API for Numato GPIO Expanders"; + homepage = "https://github.com/clssn/numato-gpio"; + changelog = "https://github.com/clssn/numato-gpio/releases/tag/${src.tag}"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.jamiemagee ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c2df3ddcf44b..9882a2f5d200 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10577,6 +10577,8 @@ self: super: with self; { num2words = callPackage ../development/python-modules/num2words { }; + numato-gpio = callPackage ../development/python-modules/numato-gpio { }; + numba = callPackage ../development/python-modules/numba { inherit (pkgs.config) cudaSupport; }; numba-scipy = callPackage ../development/python-modules/numba-scipy { }; From d4abfff176f427f31ec0512610a725f8a69e81ff Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Tue, 19 Aug 2025 23:30:58 -0700 Subject: [PATCH 2/2] home-assistant: update component packages --- pkgs/servers/home-assistant/component-packages.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 913c646f41f0..966bc9f11f4b 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -4061,7 +4061,8 @@ ]; "numato" = ps: with ps; [ - ]; # missing inputs: numato-gpio + numato-gpio + ]; "number" = ps: with ps; [ ]; @@ -7460,6 +7461,7 @@ "ntfy" "nuheat" "nuki" + "numato" "number" "nut" "nws"