blob: 42773a8aec7304c3461f64866122d2840eab7bab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{
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 = {
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 = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
|