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