2025-07-04 00:27:18 +02:00

48 lines
972 B
Nix

{
lib,
aiohttp,
aioresponses,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytest-aiohttp,
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pyairnow";
version = "1.3.1";
pyproject = true;
src = fetchFromGitHub {
owner = "asymworks";
repo = "pyairnow";
tag = "v${version}";
hash = "sha256-BGTtDMq5SnYrk1qT6OkGa1tkxYH5umbMC5Udmffyf+g=";
};
build-system = [ poetry-core ];
dependencies = [ aiohttp ];
nativeCheckInputs = [
aioresponses
pytest-asyncio
pytest-aiohttp
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "pyairnow" ];
meta = with lib; {
description = "Python wrapper for EPA AirNow Air Quality API";
homepage = "https://github.com/asymworks/pyairnow";
changelog = "https://github.com/asymworks/pyairnow/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}