2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2021-01-05 11:09:56 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2020-10-08 10:47:43 +00:00
|
|
|
, requests
|
2021-01-05 11:09:56 +00:00
|
|
|
, responses
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytestcov
|
|
|
|
, isPy27
|
2020-10-08 10:47:43 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "googlemaps";
|
|
|
|
version = "4.4.2";
|
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "googlemaps";
|
|
|
|
repo = "google-maps-services-python";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "DYhW1OGce/0gY7Jmwq6iM45PxLyXIYo4Cfg2u6Xuyg4=";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook responses pytestcov ];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# touches network
|
|
|
|
"test_elevation_along_path_single"
|
|
|
|
"test_transit_without_time"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-08 10:47:43 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|