Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 aiohttp, 4 aioresponses, 5 buildPythonPackage, 6 fetchFromGitHub, 7 pytest-aiohttp, 8 pytestCheckHook, 9 pythonOlder, 10 setuptools, 11}: 12 13buildPythonPackage rec { 14 pname = "rki-covid-parser"; 15 version = "1.3.3"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.6"; 19 20 src = fetchFromGitHub { 21 owner = "thebino"; 22 repo = "rki-covid-parser"; 23 tag = "v${version}"; 24 hash = "sha256-e0MJjE4zgBPL+vt9EkgsdGrgqUyKK/1S9ZFxy56PUjc="; 25 }; 26 27 nativeBuildInputs = [ setuptools ]; 28 29 propagatedBuildInputs = [ aiohttp ]; 30 31 nativeCheckInputs = [ 32 aioresponses 33 pytest-aiohttp 34 pytestCheckHook 35 ]; 36 37 disabledTestPaths = [ 38 # Tests require network access 39 "tests/test_districts.py" 40 "tests/test_endpoint_availibility.py" 41 ]; 42 43 pythonImportsCheck = [ "rki_covid_parser" ]; 44 45 meta = with lib; { 46 description = "Python module for working with data from the Robert-Koch Institut"; 47 homepage = "https://github.com/thebino/rki-covid-parser"; 48 changelog = "https://github.com/thebino/rki-covid-parser/blob/v${version}/CHANGELOG.md"; 49 license = with licenses; [ asl20 ]; 50 maintainers = with maintainers; [ fab ]; 51 }; 52}