nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 45 lines 951 B view raw
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.6.0"; 14 disabled = pythonOlder "3.5"; 15 16 src = fetchFromGitHub { 17 owner = "googlemaps"; 18 repo = "google-maps-services-python"; 19 rev = "v${version}"; 20 sha256 = "sha256-pzCM1uZupqJgoogwacuuy1P8I9LF65w7ZS6vY10VgeU="; 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}