diff --git a/pkgs/servers/home-assistant/custom-components/mypyllant/package.nix b/pkgs/servers/home-assistant/custom-components/mypyllant/package.nix new file mode 100644 index 000000000000..e16c0fb998c8 --- /dev/null +++ b/pkgs/servers/home-assistant/custom-components/mypyllant/package.nix @@ -0,0 +1,52 @@ +{ + buildHomeAssistantComponent, + fetchFromGitHub, + lib, + + # dependencies + mypyllant, + voluptuous, + + # tests + aioresponses, + polyfactory, + pytest-cov-stub, + pytest-homeassistant-custom-component, + pytest-xdist, + pytestCheckHook, +}: + +buildHomeAssistantComponent rec { + owner = "signalkraft"; + domain = "mypyllant"; + version = "0.9.9"; + + src = fetchFromGitHub { + owner = "signalkraft"; + repo = "mypyllant-component"; + tag = "v${version}"; + hash = "sha256-6T8SGAP2535VqZmvSeITpMIa0SBJhnWsOKM1Y66WhHE="; + }; + + dependencies = [ + mypyllant + voluptuous + ]; + + nativeCheckInputs = [ + aioresponses + polyfactory + pytest-cov-stub + pytest-homeassistant-custom-component + pytest-xdist + pytestCheckHook + ]; + + meta = { + description = "Unofficial Home Assistant integration for interacting with myVAILLANT"; + changelog = "https://github.com/signalkraft/mypyllant-component/releases/tag/${src.tag}"; + homepage = "https://github.com/signalkraft/mypyllant-component"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ urbas ]; + }; +}