Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 aiohttp, 4 aioresponses, 5 buildPythonPackage, 6 fetchFromGitHub, 7 geojson, 8 haversine, 9 mock, 10 pytest-asyncio, 11 pytestCheckHook, 12 pythonOlder, 13 setuptools, 14}: 15 16buildPythonPackage rec { 17 pname = "aio-geojson-client"; 18 version = "0.20"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.8"; 22 23 src = fetchFromGitHub { 24 owner = "exxamalte"; 25 repo = "python-aio-geojson-client"; 26 rev = "refs/tags/v${version}"; 27 hash = "sha256-GASjsOCZ4lSK0+VtIuVxFNxjMCbHkUGy/KSBtGLSaXw="; 28 }; 29 30 __darwinAllowLocalNetworking = true; 31 32 nativeBuildInputs = [ setuptools ]; 33 34 propagatedBuildInputs = [ 35 aiohttp 36 geojson 37 haversine 38 ]; 39 40 nativeCheckInputs = [ 41 aioresponses 42 mock 43 pytest-asyncio 44 pytestCheckHook 45 ]; 46 47 pythonImportsCheck = [ "aio_geojson_client" ]; 48 49 meta = with lib; { 50 description = "Python module for accessing GeoJSON feeds"; 51 homepage = "https://github.com/exxamalte/python-aio-geojson-client"; 52 changelog = "https://github.com/exxamalte/python-aio-geojson-client/blob/v${version}/CHANGELOG.md"; 53 license = with licenses; [ asl20 ]; 54 maintainers = with maintainers; [ fab ]; 55 }; 56}