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 geojson, 9 pytest-asyncio, 10 pytestCheckHook, 11 pythonOlder, 12 pythonRelaxDepsHook, 13 pytz, 14 setuptools, 15}: 16 17buildPythonPackage rec { 18 pname = "aio-geojson-generic-client"; 19 version = "0.4"; 20 pyproject = true; 21 22 disabled = pythonOlder "3.8"; 23 24 src = fetchFromGitHub { 25 owner = "exxamalte"; 26 repo = "python-aio-geojson-generic-client"; 27 rev = "refs/tags/v${version}"; 28 hash = "sha256-065aPocJFOTn+naedxRJ7U/b7hjrYViu2MEUsBpQ9cY="; 29 }; 30 31 __darwinAllowLocalNetworking = true; 32 33 nativeBuildInputs = [ 34 pythonRelaxDepsHook 35 setuptools 36 ]; 37 38 pythonRelaxDeps = [ 39 # geojson>=2.4.0,<3, but we have 3.x 40 "geojson" 41 ]; 42 43 propagatedBuildInputs = [ 44 aiohttp 45 aio-geojson-client 46 geojson 47 pytz 48 ]; 49 50 nativeCheckInputs = [ 51 aioresponses 52 pytest-asyncio 53 pytestCheckHook 54 ]; 55 56 pythonImportsCheck = [ "aio_geojson_generic_client" ]; 57 58 meta = with lib; { 59 description = "Python library for accessing GeoJSON feeds"; 60 homepage = "https://github.com/exxamalte/python-aio-geojson-generic-client"; 61 changelog = "https://github.com/exxamalte/python-aio-geojson-generic-client/blob/v${version}/CHANGELOG.md"; 62 license = with licenses; [ asl20 ]; 63 maintainers = with maintainers; [ fab ]; 64 }; 65}