depot/third_party/nixpkgs/pkgs/development/python-modules/googlemaps/default.nix
Default email 07d6a74cbb Project import generated by Copybara.
GitOrigin-RevId: f5e8bdd07d1afaabf6b37afc5497b1e498b8046f
2021-03-19 18:17:44 +01:00

45 lines
951 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest-cov
, pytestCheckHook
, pythonOlder
, requests
, responses
}:
buildPythonPackage rec {
pname = "googlemaps";
version = "4.4.5";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "googlemaps";
repo = "google-maps-services-python";
rev = "v${version}";
sha256 = "sha256-Rdfp98UqTMbqcOpkzh0Dz8fNSSbuvCnCztCkxiBgaAA=";
};
propagatedBuildInputs = [ requests ];
checkInputs = [
pytest-cov
pytestCheckHook
responses
];
disabledTests = [
# touches network
"test_elevation_along_path_single"
"test_transit_without_time"
];
pythonImportsCheck = [ "googlemaps" ];
meta = with lib; {
homepage = "https://github.com/googlemaps/google-maps-services-python";
description = "Python client library for Google Maps API Web Services";
license = licenses.asl20;
maintainers = with maintainers; [ Scriptkiddi ];
};
}