Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / googlemaps / default.nix
blobd2e67e4676e796d72be0f22d3b4ed2c972b3f098
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytest-cov
5 , pytestCheckHook
6 , pythonOlder
7 , requests
8 , responses
9 }:
11 buildPythonPackage rec {
12   pname = "googlemaps";
13   version = "4.10.0";
14   format = "setuptools";
16   disabled = pythonOlder "3.5";
18   src = fetchFromGitHub {
19     owner = "googlemaps";
20     repo = "google-maps-services-python";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-8oGZEMKUGaDHKq4qIZy10cbLNMmVclJnQE/dx877pNQ=";
23   };
25   propagatedBuildInputs = [
26     requests
27   ];
29   nativeCheckInputs = [
30     pytest-cov
31     pytestCheckHook
32     responses
33   ];
35   disabledTests = [
36     # touches network
37     "test_elevation_along_path_single"
38     "test_transit_without_time"
39   ];
41   pythonImportsCheck = [
42     "googlemaps"
43   ];
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   };