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