1{ lib 2, aiohttp 3, aioresponses 4, buildPythonPackage 5, fetchFromGitHub 6, pytest-aiohttp 7, poetry 8, pytest-asyncio 9, pytest-cov 10, pytestCheckHook 11}: 12 13buildPythonPackage rec { 14 pname = "pyairnow"; 15 version = "1.1.0"; 16 format = "pyproject"; 17 18 src = fetchFromGitHub { 19 owner = "asymworks"; 20 repo = pname; 21 rev = "v${version}"; 22 sha256 = "1hkpfl8rdwyzqrr1drqlmcw3xpv3pi1jf19h1divspbzwarqxs1c"; 23 }; 24 25 nativeBuildInputs = [ poetry ]; 26 27 propagatedBuildInputs = [ aiohttp ]; 28 29 checkInputs = [ 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 license = with licenses; [ mit ]; 43 maintainers = with maintainers; [ fab ]; 44 }; 45}