1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 geojson, 6 haversine, 7 pytz, 8 requests, 9 pytestCheckHook, 10 pythonOlder, 11}: 12 13buildPythonPackage rec { 14 pname = "geojson-client"; 15 version = "0.8"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "exxamalte"; 22 repo = "python-geojson-client"; 23 tag = "v${version}"; 24 hash = "sha256-nzM5P1ww6yWM3e2v3hRw0ECoYmRPhTs0Q7Wwicl+IpU="; 25 }; 26 27 propagatedBuildInputs = [ 28 geojson 29 haversine 30 pytz 31 requests 32 ]; 33 34 nativeCheckInputs = [ pytestCheckHook ]; 35 36 pythonImportsCheck = [ "geojson_client" ]; 37 38 meta = with lib; { 39 description = "Python module for convenient access to GeoJSON feeds"; 40 homepage = "https://github.com/exxamalte/python-geojson-client"; 41 changelog = "https://github.com/exxamalte/python-geojson-client/blob/v${version}/CHANGELOG.md"; 42 license = with licenses; [ asl20 ]; 43 maintainers = with maintainers; [ fab ]; 44 }; 45}