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.5.3"; 14 disabled = pythonOlder "3.5"; 15 16 src = fetchFromGitHub { 17 owner = "googlemaps"; 18 repo = "google-maps-services-python"; 19 rev = "v${version}"; 20 sha256 = "1yfsfspvjngrb1lwaq04ahm94j9y2dwzdf4dsg3yl1c8w0vgf9yw"; 21 }; 22 23 propagatedBuildInputs = [ requests ]; 24 25 checkInputs = [ 26 pytest-cov 27 pytestCheckHook 28 responses 29 ]; 30 31 disabledTests = [ 32 # touches network 33 "test_elevation_along_path_single" 34 "test_transit_without_time" 35 ]; 36 37 pythonImportsCheck = [ "googlemaps" ]; 38 39 meta = with lib; { 40 homepage = "https://github.com/googlemaps/google-maps-services-python"; 41 description = "Python client library for Google Maps API Web Services"; 42 license = licenses.asl20; 43 maintainers = with maintainers; [ Scriptkiddi ]; 44 }; 45}