From 7ddc676131b3bc70106f0d4299f9a7af3b72e4a3 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Wed, 25 Feb 2026 21:01:40 -0800 Subject: [PATCH 1/2] python3Packages.hanna-cloud: init at 0.0.7 --- .../python-modules/hanna-cloud/default.nix | 41 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 43 insertions(+) create mode 100644 pkgs/development/python-modules/hanna-cloud/default.nix diff --git a/pkgs/development/python-modules/hanna-cloud/default.nix b/pkgs/development/python-modules/hanna-cloud/default.nix new file mode 100644 index 000000000000..7e4102121076 --- /dev/null +++ b/pkgs/development/python-modules/hanna-cloud/default.nix @@ -0,0 +1,41 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pycryptodome, + requests, + setuptools, +}: + +buildPythonPackage (finalAttrs: { + pname = "hanna-cloud"; + version = "0.0.7"; + pyproject = true; + + src = fetchFromGitHub { + owner = "bestycame"; + repo = "hanna_cloud"; + tag = finalAttrs.version; + hash = "sha256-UYwM1IbU4LlgBBEbMYX5ovf5/8N1SwyeKTHz6TYZZ24="; + }; + + build-system = [ setuptools ]; + + dependencies = [ + pycryptodome + requests + ]; + + # upstream has no tests + doCheck = false; + + pythonImportsCheck = [ "hanna_cloud" ]; + + meta = { + description = "Python client for the HannaCloud API"; + homepage = "https://github.com/bestycame/hanna_cloud"; + changelog = "https://github.com/bestycame/hanna_cloud/releases/tag/${finalAttrs.version}"; + 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 018d05fc4efd..28c3085cb4f5 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6834,6 +6834,8 @@ self: super: with self; { hankel = callPackage ../development/python-modules/hankel { }; + hanna-cloud = callPackage ../development/python-modules/hanna-cloud { }; + hanzidentifier = callPackage ../development/python-modules/hanzidentifier { }; hap-python = callPackage ../development/python-modules/hap-python { }; From 55397635f4879d7b68e25d82e85beea12685115b Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Wed, 25 Feb 2026 21:01:45 -0800 Subject: [PATCH 2/2] home-assistant: add hanna-cloud to hanna component --- pkgs/servers/home-assistant/component-packages.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index b740f4aebd7a..f4ee4b0c6ff3 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -2291,7 +2291,8 @@ ]; "hanna" = ps: with ps; [ - ]; # missing inputs: hanna-cloud + hanna-cloud + ]; "hardkernel" = ps: with ps; [ aiohasupervisor