Merge pull request #332681 from dotlambda/python3Packages.stookwijzer

home-assistant: support stookwijzer component
This commit is contained in:
Martin Weinelt 2024-08-06 12:22:36 +02:00 committed by GitHub
commit def4d3fdf4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 46 additions and 1 deletions

View File

@ -0,0 +1,41 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
aiohttp,
pytz,
}:
buildPythonPackage rec {
pname = "stookwijzer";
version = "1.4.9";
pyproject = true;
src = fetchFromGitHub {
owner = "fwestenberg";
repo = "stookwijzer";
rev = "refs/tags/v${version}";
hash = "sha256-QXCusmbt40Tg73ozl9nIDgMtQJ152uNhOuFyHn+OEA8=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
pytz
];
pythonImportsCheck = [ "stookwijzer" ];
# upstream has no tests
doCheck = false;
meta = {
changelog = "https://github.com/fwestenberg/stookwijzer/releases/tag/v${version}";
description = "Python package for the Stookwijzer API";
homepage = "https://github.com/fwestenberg/stookwijzer";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}

View File

@ -4304,7 +4304,8 @@
stookalert
];
"stookwijzer" = ps: with ps; [
]; # missing inputs: stookwijzer
stookwijzer
];
"stream" = ps: with ps; [
av
numpy_1
@ -5917,6 +5918,7 @@
"steam_online"
"steamist"
"stookalert"
"stookwijzer"
"stream"
"streamlabswater"
"stt"

View File

@ -14984,6 +14984,8 @@ self: super: with self; {
stookalert = callPackage ../development/python-modules/stookalert { };
stookwijzer = callPackage ../development/python-modules/stookwijzer { };
stopit = callPackage ../development/python-modules/stopit { };
stransi = callPackage ../development/python-modules/stransi { };