Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, aiohttp 3, aresponses 4, buildPythonPackage 5, fetchFromGitHub 6, poetry-core 7, pytest-asyncio 8, pytest-aiohttp 9, pytestCheckHook 10, pythonOlder 11, ujson 12}: 13 14buildPythonPackage rec { 15 pname = "pyoutbreaksnearme"; 16 version = "2022.10.0"; 17 format = "pyproject"; 18 19 disabled = pythonOlder "3.9"; 20 21 src = fetchFromGitHub { 22 owner = "bachya"; 23 repo = pname; 24 rev = "refs/tags/${version}"; 25 hash = "sha256-D7oXkKDSg+yF+j1WyG/VVY12hLU6oyhEtxLrF6IkMSA="; 26 }; 27 28 nativeBuildInputs = [ 29 poetry-core 30 ]; 31 32 propagatedBuildInputs = [ 33 aiohttp 34 ujson 35 ]; 36 37 nativeCheckInputs = [ 38 aresponses 39 pytest-asyncio 40 pytest-aiohttp 41 pytestCheckHook 42 ]; 43 44 disabledTestPaths = [ 45 # Ignore the examples directory as the files are prefixed with test_. 46 "examples/" 47 ]; 48 49 pythonImportsCheck = [ 50 "pyoutbreaksnearme" 51 ]; 52 53 meta = with lib; { 54 description = "Library for retrieving data from for Outbreaks Near Me"; 55 homepage = "https://github.com/bachya/pyoutbreaksnearme"; 56 changelog = "https://github.com/bachya/pyoutbreaksnearme/releases/tag/${version}"; 57 license = with licenses; [ mit ]; 58 maintainers = with maintainers; [ fab ]; 59 }; 60}