From fd4bc1b9aa4f9ea507ce0515caa2e09a54192763 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 23 Mar 2024 13:48:31 -0700 Subject: [PATCH 1/3] home-assistant-custom-components: fix typos in README --- pkgs/servers/home-assistant/custom-components/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/home-assistant/custom-components/README.md b/pkgs/servers/home-assistant/custom-components/README.md index 888ea97e4553..ccb8062200f8 100644 --- a/pkgs/servers/home-assistant/custom-components/README.md +++ b/pkgs/servers/home-assistant/custom-components/README.md @@ -11,7 +11,7 @@ Python runtime dependencies can be directly consumed as unqualified function arguments. Pass them into `propagatedBuildInputs`, for them to be available to Home Assistant. -Out-of-tree components need to use python packages from +Out-of-tree components need to use Python packages from `home-assistant.python.pkgs` as to not introduce conflicting package versions into the Python environment. @@ -58,7 +58,7 @@ domain in the `manifest.json` as well as the module name are The `pname` attribute is a composition of both `owner` and `domain`. -Don't set `pname`, set `owner and `domain` instead. +Don't set `pname`, set `owner` and `domain` instead. Exposing the `domain` attribute separately allows checking for conflicting components at eval time. From 7a5e7bf3f558e4dae32deaa56ba605d9f35798b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 23 Mar 2024 13:53:56 -0700 Subject: [PATCH 2/3] python312Packages.hahomematic: add dotlambda to maintainers --- pkgs/development/python-modules/hahomematic/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/hahomematic/default.nix b/pkgs/development/python-modules/hahomematic/default.nix index dae2aae43bf2..1ff20bf48873 100644 --- a/pkgs/development/python-modules/hahomematic/default.nix +++ b/pkgs/development/python-modules/hahomematic/default.nix @@ -66,6 +66,6 @@ buildPythonPackage rec { homepage = "https://github.com/danielperna84/hahomematic"; changelog = "https://github.com/danielperna84/hahomematic/releases/tag/${version}"; license = with licenses; [ mit ]; - maintainers = with maintainers; [ fab ]; + maintainers = with maintainers; [ dotlambda fab ]; }; } From f4c60c3711eb6d7afeb06df8d6c3fe492dd4abda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 23 Mar 2024 13:48:54 -0700 Subject: [PATCH 3/3] home-assistant-custom-components.homematicip_local: init at 1.58.0 --- .../custom-components/default.nix | 2 ++ .../homematicip_local/default.nix | 30 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/servers/home-assistant/custom-components/homematicip_local/default.nix diff --git a/pkgs/servers/home-assistant/custom-components/default.nix b/pkgs/servers/home-assistant/custom-components/default.nix index fb558e343220..ad63a4bdc0b6 100644 --- a/pkgs/servers/home-assistant/custom-components/default.nix +++ b/pkgs/servers/home-assistant/custom-components/default.nix @@ -18,6 +18,8 @@ gpio = callPackage ./gpio {}; + homematicip_local = callPackage ./homematicip_local { }; + localtuya = callPackage ./localtuya {}; miele = callPackage ./miele {}; diff --git a/pkgs/servers/home-assistant/custom-components/homematicip_local/default.nix b/pkgs/servers/home-assistant/custom-components/homematicip_local/default.nix new file mode 100644 index 000000000000..26b9f85e1d79 --- /dev/null +++ b/pkgs/servers/home-assistant/custom-components/homematicip_local/default.nix @@ -0,0 +1,30 @@ +{ lib +, buildHomeAssistantComponent +, fetchFromGitHub +, hahomematic +}: + +buildHomeAssistantComponent rec { + owner = "danielperna84"; + domain = "homematicip_local"; + version = "1.58.0"; + + src = fetchFromGitHub { + owner = "danielperna84"; + repo = "custom_homematic"; + rev = "refs/tags/${version}"; + hash = "sha256-ianM29eF2MN2THS3CTg4tBkd+8pV/m1fg8VvMDhhadg="; + }; + + dependencies = [ + hahomematic + ]; + + meta = { + changelog = "https://github.com/danielperna84/custom_homematic/blob/${version}/changelog.md"; + description = "Custom Home Assistant Component for HomeMatic"; + homepage = "https://github.com/danielperna84/custom_homematic"; + maintainers = with lib.maintainers; [ dotlambda ]; + license = lib.licenses.mit; + }; +}