Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 1.1 kB view raw
1{ lib 2, aiohttp 3, buildPythonPackage 4, fetchFromGitHub 5, fetchpatch 6, poetry-core 7, pytest-aiohttp 8, pytest-asyncio 9, pytest-cov 10, pytestCheckHook 11}: 12 13buildPythonPackage rec { 14 pname = "aioeafm"; 15 version = "1.0.0"; 16 format = "pyproject"; 17 18 src = fetchFromGitHub { 19 owner = "Jc2k"; 20 repo = pname; 21 rev = version; 22 sha256 = "048cxn3fw2hynp27zlizq7k8ps67qq9sib1ddgirnxy5zc87vgkc"; 23 }; 24 25 patches = [ 26 (fetchpatch { 27 name = "use-poetry-core.patch"; 28 url = "https://github.com/Jc2k/aioeafm/commit/549590e2ed465be40e2406416d89b8a8cd8c6185.patch"; 29 hash = "sha256-cG/vQI1XQO8LVvWsHrAj8KlPGRulvO7Ny+k0CKUpPqQ="; 30 }) 31 ]; 32 33 nativeBuildInputs = [ poetry-core ]; 34 35 propagatedBuildInputs = [ aiohttp ]; 36 37 nativeCheckInputs = [ 38 pytest-aiohttp 39 pytest-asyncio 40 pytest-cov 41 pytestCheckHook 42 ]; 43 44 pythonImportsCheck = [ "aioeafm" ]; 45 46 meta = with lib; { 47 description = "Python client for access the Real Time flood monitoring API"; 48 homepage = "https://github.com/Jc2k/aioeafm"; 49 license = with licenses; [ asl20 ]; 50 maintainers = with maintainers; [ fab ]; 51 }; 52}