Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at domenkozar-patch-1 54 lines 1.2 kB view raw
1{ lib 2, aiohttp 3, aioresponses 4, buildPythonPackage 5, fetchFromGitHub 6, fetchpatch 7, pytest-aiohttp 8, poetry-core 9, pytest-asyncio 10, pytest-cov 11, pytestCheckHook 12}: 13 14buildPythonPackage rec { 15 pname = "pyairnow"; 16 version = "1.1.0"; 17 format = "pyproject"; 18 19 src = fetchFromGitHub { 20 owner = "asymworks"; 21 repo = pname; 22 rev = "v${version}"; 23 sha256 = "1hkpfl8rdwyzqrr1drqlmcw3xpv3pi1jf19h1divspbzwarqxs1c"; 24 }; 25 26 patches = [ 27 (fetchpatch { 28 name = "switch-to-poetry-core.patch"; 29 url = "https://github.com/asymworks/pyairnow/commit/f7a01733a41c648563fc2fe4b559f61ef08b9153.patch"; 30 hash = "sha256-lcHnFP3bwkPTi9Zq1dZtShLKyXcxO0XoDF+PgjbWOqs="; 31 }) 32 ]; 33 34 nativeBuildInputs = [ poetry-core ]; 35 36 propagatedBuildInputs = [ aiohttp ]; 37 38 checkInputs = [ 39 aioresponses 40 pytest-asyncio 41 pytest-aiohttp 42 pytest-cov 43 pytestCheckHook 44 ]; 45 46 pythonImportsCheck = [ "pyairnow" ]; 47 48 meta = with lib; { 49 description = "Python wrapper for EPA AirNow Air Quality API"; 50 homepage = "https://github.com/asymworks/pyairnow"; 51 license = with licenses; [ mit ]; 52 maintainers = with maintainers; [ fab ]; 53 }; 54}