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