Unverified Commit ce136d95 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

home-assistant: support google_weather component (#469218)

parents 77bb04cd 934ca10f
Loading
Loading
Loading
Loading
+43 −0
Original line number Diff line number Diff line
{
  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 ];
  };
}
+3 −1
Original line number Diff line number Diff line
@@ -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"
+2 −0
Original line number Diff line number Diff line
@@ -15175,6 +15175,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 { };