Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 aio-geojson-client, 4 aiohttp, 5 aioresponses, 6 buildPythonPackage, 7 fetchFromGitHub, 8 pytest-asyncio, 9 pytestCheckHook, 10 pytz, 11 pythonOlder, 12 setuptools, 13}: 14 15buildPythonPackage rec { 16 pname = "aio-geojson-usgs-earthquakes"; 17 version = "0.4"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.8"; 21 22 src = fetchFromGitHub { 23 owner = "exxamalte"; 24 repo = "python-aio-geojson-usgs-earthquakes"; 25 tag = "v${version}"; 26 hash = "sha256-UzLnctft/D38bqClqyyJ4b5GvVXM4CFSd6TypuLo0Y4="; 27 }; 28 29 build-system = [ setuptools ]; 30 31 dependencies = [ 32 aio-geojson-client 33 aiohttp 34 pytz 35 ]; 36 37 nativeCheckInputs = [ 38 aioresponses 39 pytest-asyncio 40 pytestCheckHook 41 ]; 42 43 pythonImportsCheck = [ "aio_geojson_usgs_earthquakes" ]; 44 45 __darwinAllowLocalNetworking = true; 46 47 meta = with lib; { 48 description = "Module for accessing the U.S. Geological Survey Earthquake Hazards Program feeds"; 49 homepage = "https://github.com/exxamalte/python-aio-geojson-usgs-earthquakes"; 50 changelog = "https://github.com/exxamalte/python-aio-geojson-usgs-earthquakes/blob/v${version}/CHANGELOG.md"; 51 license = licenses.asl20; 52 maintainers = with maintainers; [ fab ]; 53 }; 54}