From 7dd24848c2303702a46d6fc19559197c359baefe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 8 Dec 2025 23:33:05 -0800 Subject: [PATCH 1/2] python3Packages.python-google-weather-api: init at 0.0.4 --- .../python-google-weather-api/default.nix | 43 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 45 insertions(+) create mode 100644 pkgs/development/python-modules/python-google-weather-api/default.nix diff --git a/pkgs/development/python-modules/python-google-weather-api/default.nix b/pkgs/development/python-modules/python-google-weather-api/default.nix new file mode 100644 index 000000000000..0eccbed7cb73 --- /dev/null +++ b/pkgs/development/python-modules/python-google-weather-api/default.nix @@ -0,0 +1,43 @@ +{ + aiohttp, + buildPythonPackage, + fetchFromGitHub, + lib, + mashumaro, + pytestCheckHook, + setuptools, +}: + +buildPythonPackage rec { + pname = "python-google-weather-api"; + version = "0.0.4"; + pyproject = true; + + src = fetchFromGitHub { + owner = "tronikos"; + repo = "python-google-weather-api"; + tag = "v${version}"; + hash = "sha256-5ljKaIwG78oufb0iRaqTY46wxelAiuQUvhmRbZWo5Fk="; + }; + + build-system = [ setuptools ]; + + dependencies = [ + aiohttp + mashumaro + ]; + + pythonImportsCheck = [ "google_weather_api" ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + meta = { + changelog = "https://github.com/tronikos/python-google-weather-api/releases/tag/${src.tag}"; + description = "Python client library for the Google Weather API"; + homepage = "https://github.com/tronikos/python-google-weather-api"; + license = lib.licenses.asl20; + maintainers = [ lib.maintainers.dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e8ef24a53722..979b70897ef9 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -15169,6 +15169,8 @@ self: super: with self; { python-google-nest = callPackage ../development/python-modules/python-google-nest { }; + python-google-weather-api = callPackage ../development/python-modules/python-google-weather-api { }; + python-gvm = callPackage ../development/python-modules/python-gvm { }; python-hcl2 = callPackage ../development/python-modules/python-hcl2 { }; From 934ca10f4ffbde00aafbeb7e46c7733ef6118a19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 8 Dec 2025 23:33:45 -0800 Subject: [PATCH 2/2] home-assistant: support google_weather component --- pkgs/servers/home-assistant/component-packages.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index a4cee8911cc4..19e4da7a5cc0 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -2168,7 +2168,8 @@ ]; "google_weather" = ps: with ps; [ - ]; # missing inputs: python-google-weather-api + python-google-weather-api + ]; "google_wifi" = ps: with ps; [ ]; @@ -7381,6 +7382,7 @@ "google_tasks" "google_translate" "google_travel_time" + "google_weather" "google_wifi" "govee_ble" "govee_light_local"