python3Packages.google-air-quality-api: init at 3.0.1

https://github.com/Thomas55555/python-google-air-quality-api
This commit is contained in:
Jamie Magee
2026-02-22 21:10:25 -08:00
parent 56d662f5e3
commit 21a7978e52
2 changed files with 66 additions and 0 deletions
@@ -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 ];
};
})
+2
View File
@@ -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 { };