2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
aioresponses,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
poetry-core,
|
2024-09-19 14:19:46 +00:00
|
|
|
pytest-aiohttp,
|
2024-06-05 15:53:02 +00:00
|
|
|
pytest-asyncio,
|
2024-09-19 14:19:46 +00:00
|
|
|
pytest-cov-stub,
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestCheckHook,
|
2024-09-19 14:19:46 +00:00
|
|
|
pythonOlder,
|
2021-02-13 14:23:35 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyairnow";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.2.2";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2021-02-13 14:23:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "asymworks";
|
2024-09-19 14:19:46 +00:00
|
|
|
repo = "pyairnow";
|
2023-03-04 12:14:45 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-KjOu9V92n2rq8iOkgutlK7EMRvirFAEK8oxseI+dr2s=";
|
2021-02-13 14:23:35 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ poetry-core ];
|
2021-02-13 14:23:35 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
dependencies = [ aiohttp ];
|
2021-02-13 14:23:35 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-02-13 14:23:35 +00:00
|
|
|
aioresponses
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-aiohttp
|
2024-09-19 14:19:46 +00:00
|
|
|
pytest-cov-stub
|
2021-02-13 14:23:35 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pyairnow" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python wrapper for EPA AirNow Air Quality API";
|
|
|
|
homepage = "https://github.com/asymworks/pyairnow";
|
2023-03-15 16:39:30 +00:00
|
|
|
changelog = "https://github.com/asymworks/pyairnow/blob/v${version}/CHANGELOG.md";
|
2024-09-19 14:19:46 +00:00
|
|
|
license = licenses.mit;
|
2021-02-13 14:23:35 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|