home-assistant-custom-component.hochwasserportal: init at 1.0.8 (#542228)

This commit is contained in:
Sandro
2026-07-20 14:36:08 +00:00
committed by GitHub
3 changed files with 81 additions and 0 deletions
@@ -0,0 +1,41 @@
{
lib,
beautifulsoup4,
lxml,
hatchling,
requests,
tzdata,
buildPythonPackage,
fetchFromGitHub,
}:
buildPythonPackage rec {
pname = "lhpapi";
version = "1.0.10";
pyproject = true;
src = fetchFromGitHub {
owner = "stephan192";
repo = "lhpapi";
tag = "v${version}";
hash = "sha256-Q9X1STaWWbWWy8wmCQ3Cx+z19+X3EcGl0u/Mmc49rAM=";
};
dependencies = [
beautifulsoup4
lxml
requests
tzdata
];
build-system = [ hatchling ];
pythonImportsCheck = [ "lhpapi" ];
meta = {
description = "API to retrieve data from the Länderübergreifendes Hochwasser Portal (LHP)";
homepage = "https://github.com/stephan192/lhpapi";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ _9R ];
};
}
@@ -0,0 +1,38 @@
{
lib,
buildHomeAssistantComponent,
fetchFromGitHub,
pytest-homeassistant-custom-component,
# dependency
lhpapi,
}:
buildHomeAssistantComponent rec {
owner = "stephan192";
domain = "hochwasserportal";
version = "1.0.8";
src = fetchFromGitHub {
owner = "stephan192";
repo = "hochwasserportal";
tag = "v${version}";
hash = "sha256-q2usHeWcx/1UrM7MQ156SFy8cFIiCcsmIr6721hzSLI=";
};
dependencies = [
lhpapi
];
nativeCheckInputs = [
pytest-homeassistant-custom-component
];
meta = {
changelog = "https://github.com/stephan192/hochwasserportal/releases/tag/${version}";
description = "Home Assistant integration for Länderübergreifendes Hochwasser Portal";
homepage = "https://github.com/stephan192/hochwasserportal";
maintainers = with lib.maintainers; [ _9R ];
license = lib.licenses.mit;
};
}
+2
View File
@@ -9190,6 +9190,8 @@ self: super: with self; {
lhapdf = toPythonModule (pkgs.lhapdf.override { python3 = python; });
lhpapi = callPackage ../development/python-modules/lhpapi { };
lib4package = callPackage ../development/python-modules/lib4package { };
lib4sbom = callPackage ../development/python-modules/lib4sbom { };