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