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