diff --git a/pkgs/servers/home-assistant/custom-components/plant/package.nix b/pkgs/servers/home-assistant/custom-components/plant/package.nix new file mode 100644 index 000000000000..46a6c3e5e30b --- /dev/null +++ b/pkgs/servers/home-assistant/custom-components/plant/package.nix @@ -0,0 +1,38 @@ +{ + lib, + async-timeout, + buildHomeAssistantComponent, + fetchFromGitHub, + pytest-homeassistant-custom-component, + pytestCheckHook, +}: + +buildHomeAssistantComponent rec { + owner = "olen"; + domain = "plant"; + version = "2026.2.1"; + + src = fetchFromGitHub { + inherit owner; + repo = "homeassistant-plant"; + tag = "v${version}"; + hash = "sha256-nWZFywMTw3seEAERekzMeLRPceqMl1s7VXujNz0+6zI="; + }; + + dependencies = [ + async-timeout + ]; + + nativeCheckInputs = [ + pytest-homeassistant-custom-component + pytestCheckHook + ]; + + meta = { + description = "Alternative Plant component of home assistant"; + homepage = "https://github.com/Olen/homeassistant-plant"; + changelog = "https://github.com/Olen/homeassistant-plant/releases/tag/${src.tag}"; + maintainers = with lib.maintainers; [ SuperSandro2000 ]; + license = lib.licenses.mit; + }; +}