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/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 28ba27ff60d4..f4fb1132e70c 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 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 043c7a00cfcd..57f1e52caa6f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6854,6 +6854,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 { };