home-assistant-custom-components.miele: init at 0.1.19

This commit is contained in:
Jamie Magee 2023-12-06 10:51:20 -08:00
parent ca7139f857
commit 1403c32cee
2 changed files with 36 additions and 0 deletions

View file

@ -2,5 +2,6 @@
}:
{
miele = callPackage ./miele {};
prometheus_sensor = callPackage ./prometheus_sensor {};
}

View file

@ -0,0 +1,35 @@
{
lib,
fetchFromGitHub,
buildHomeAssistantComponent,
flatdict,
pymiele,
}:
buildHomeAssistantComponent rec {
owner = "astrandb";
domain = "miele";
version = "0.1.19";
src = fetchFromGitHub {
inherit owner;
repo = domain;
rev = "refs/tags/v${version}";
hash = "sha256-od7DV10/rkIw9eFMsTRw4bMmhQo9BAmw2rCbKKySeIk=";
};
propagatedBuildInputs = [
flatdict
pymiele
];
# Makefile only used for bumping the version
dontBuild = true;
meta = with lib; {
changelog = "https://github.com/astrandb/miele/releases/tag/v${version}";
description = "A modern integration for Miele devices in Home Assistant";
homepage = "https://github.com/astrandb/miele";
maintainers = with maintainers; [jamiemagee];
license = licenses.mit;
};
}