diff --git a/pkgs/development/python-modules/pygeosphere-warnings/default.nix b/pkgs/development/python-modules/pygeosphere-warnings/default.nix new file mode 100644 index 000000000000..26a92718cf43 --- /dev/null +++ b/pkgs/development/python-modules/pygeosphere-warnings/default.nix @@ -0,0 +1,41 @@ +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + hatchling, + pytest-asyncio, + pytestCheckHook, +}: + +buildPythonPackage (finalAttrs: { + pname = "pygeosphere-warnings"; + version = "0.1.2"; + pyproject = true; + + src = fetchFromGitHub { + owner = "tklecka"; + repo = "pygeosphere-warnings"; + tag = "v${finalAttrs.version}"; + hash = "sha256-AQ2TQk5N+S4bW0OmrZj0la2UMIdpmxBUCMhbIkszm3g="; + }; + + build-system = [ hatchling ]; + + dependencies = [ aiohttp ]; + + nativeCheckInputs = [ + pytest-asyncio + pytestCheckHook + ]; + + pythonImportsCheck = [ "pygeosphere_warnings" ]; + + meta = { + description = "Asynchronous Python client for the GeoSphere Austria Warn API"; + homepage = "https://github.com/tklecka/pygeosphere-warnings"; + changelog = "https://github.com/tklecka/pygeosphere-warnings/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.jamiemagee ]; + }; +}) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 631cff15bf0e..277a52933b88 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -2324,7 +2324,8 @@ ]; "geosphere_austria_warnings" = ps: with ps; [ - ]; # missing inputs: pygeosphere-warnings + pygeosphere-warnings + ]; "ghost" = ps: with ps; [ aioghost @@ -8319,6 +8320,7 @@ "geofency" "geonetnz_quakes" "geonetnz_volcano" + "geosphere_austria_warnings" "ghost" "gios" "github" diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f3e24f01e3af..9283b25ad003 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -14746,6 +14746,8 @@ self: super: with self; { pygeocodio = callPackage ../development/python-modules/pygeocodio { }; + pygeosphere-warnings = callPackage ../development/python-modules/pygeosphere-warnings { }; + pygerber = callPackage ../development/python-modules/pygerber { }; pygetwindow = callPackage ../development/python-modules/pygetwindow { };