1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytest-cov 5, pytestCheckHook 6, pythonOlder 7, requests 8, responses 9}: 10 11buildPythonPackage rec { 12 pname = "googlemaps"; 13 version = "4.10.0"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.5"; 17 18 src = fetchFromGitHub { 19 owner = "googlemaps"; 20 repo = "google-maps-services-python"; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-8oGZEMKUGaDHKq4qIZy10cbLNMmVclJnQE/dx877pNQ="; 23 }; 24 25 propagatedBuildInputs = [ 26 requests 27 ]; 28 29 nativeCheckInputs = [ 30 pytest-cov 31 pytestCheckHook 32 responses 33 ]; 34 35 disabledTests = [ 36 # touches network 37 "test_elevation_along_path_single" 38 "test_transit_without_time" 39 ]; 40 41 pythonImportsCheck = [ 42 "googlemaps" 43 ]; 44 45 meta = with lib; { 46 description = "Python client library for Google Maps API Web Services"; 47 homepage = "https://github.com/googlemaps/google-maps-services-python"; 48 changelog = "https://github.com/googlemaps/google-maps-services-python/releases/tag/v${version}"; 49 license = licenses.asl20; 50 maintainers = with maintainers; [ Scriptkiddi ]; 51 }; 52}