1{ lib
2, aiohttp
3, aioresponses
4, buildPythonPackage
5, fetchFromGitHub
6, pytest-aiohttp
7, poetry-core
8, pytest-asyncio
9, pytest-cov
10, pytestCheckHook
11}:
12
13buildPythonPackage rec {
14 pname = "pyairnow";
15 version = "1.2.1";
16 format = "pyproject";
17
18 src = fetchFromGitHub {
19 owner = "asymworks";
20 repo = pname;
21 rev = "refs/tags/v${version}";
22 hash = "sha256-aab+3xrEiCjysa+DzXWelQwz8V2tr74y8v0NpDZiuTk=";
23 };
24
25 nativeBuildInputs = [ poetry-core ];
26
27 propagatedBuildInputs = [ aiohttp ];
28
29 nativeCheckInputs = [
30 aioresponses
31 pytest-asyncio
32 pytest-aiohttp
33 pytest-cov
34 pytestCheckHook
35 ];
36
37 pythonImportsCheck = [ "pyairnow" ];
38
39 meta = with lib; {
40 description = "Python wrapper for EPA AirNow Air Quality API";
41 homepage = "https://github.com/asymworks/pyairnow";
42 changelog = "https://github.com/asymworks/pyairnow/blob/v${version}/CHANGELOG.md";
43 license = with licenses; [ mit ];
44 maintainers = with maintainers; [ fab ];
45 };
46}