From 21a7978e527709ab3ddeff303f449fa125cf2ab4 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Sun, 22 Feb 2026 21:10:25 -0800 Subject: [PATCH] python3Packages.google-air-quality-api: init at 3.0.1 https://github.com/Thomas55555/python-google-air-quality-api --- .../google-air-quality-api/default.nix | 64 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 66 insertions(+) create mode 100644 pkgs/development/python-modules/google-air-quality-api/default.nix diff --git a/pkgs/development/python-modules/google-air-quality-api/default.nix b/pkgs/development/python-modules/google-air-quality-api/default.nix new file mode 100644 index 000000000000..a8125736d2da --- /dev/null +++ b/pkgs/development/python-modules/google-air-quality-api/default.nix @@ -0,0 +1,64 @@ +{ + lib, + aiohttp, + aioresponses, + buildPythonPackage, + fetchFromGitHub, + mashumaro, + poetry-core, + poetry-dynamic-versioning, + pytest-aiohttp, + pytest-asyncio, + pytest-cov-stub, + pytestCheckHook, + syrupy, + time-machine, +}: + +buildPythonPackage (finalAttrs: { + pname = "google-air-quality-api"; + version = "3.0.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "Thomas55555"; + repo = "python-google-air-quality-api"; + tag = finalAttrs.version; + hash = "sha256-hgdK7Rrw/iELRE+vSuwsRUzLDT8qE2Dhxqd4bAgxays="; + }; + + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail 'version = "0.0.0"' 'version = "${finalAttrs.version}"' + ''; + + build-system = [ + poetry-core + poetry-dynamic-versioning + ]; + + dependencies = [ + aiohttp + mashumaro + ]; + + nativeCheckInputs = [ + aioresponses + pytest-aiohttp + pytest-asyncio + pytest-cov-stub + pytestCheckHook + syrupy + time-machine + ]; + + pythonImportsCheck = [ "google_air_quality_api" ]; + + meta = { + changelog = "https://github.com/Thomas55555/python-google-air-quality-api/releases/tag/${finalAttrs.version}"; + description = "Python client library for the Google Air Quality API"; + homepage = "https://github.com/Thomas55555/python-google-air-quality-api"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.jamiemagee ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index fb6a3121815c..fedba7e31560 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6298,6 +6298,8 @@ self: super: with self; { callPackage ../development/python-modules/google-ai-generativelanguage { }; + google-air-quality-api = callPackage ../development/python-modules/google-air-quality-api { }; + google-api-core = callPackage ../development/python-modules/google-api-core { }; google-api-python-client = callPackage ../development/python-modules/google-api-python-client { };