2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2021-01-05 11:09:56 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2021-03-16 22:57:06 +00:00
|
|
|
, pytest-cov
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2020-10-08 11:47:43 +01:00
|
|
|
, requests
|
2021-01-05 11:09:56 +00:00
|
|
|
, responses
|
2020-10-08 11:47:43 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "googlemaps";
|
2021-08-16 08:56:44 +01:00
|
|
|
version = "4.5.3";
|
2021-03-16 22:57:06 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
2020-10-08 11:47:43 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "googlemaps";
|
|
|
|
repo = "google-maps-services-python";
|
|
|
|
rev = "v${version}";
|
2021-08-16 08:56:44 +01:00
|
|
|
sha256 = "1yfsfspvjngrb1lwaq04ahm94j9y2dwzdf4dsg3yl1c8w0vgf9yw";
|
2020-10-08 11:47:43 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
|
2021-03-16 22:57:06 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytest-cov
|
|
|
|
pytestCheckHook
|
|
|
|
responses
|
|
|
|
];
|
2020-10-08 11:47:43 +01:00
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# touches network
|
|
|
|
"test_elevation_along_path_single"
|
|
|
|
"test_transit_without_time"
|
|
|
|
];
|
|
|
|
|
2021-03-16 22:57:06 +00:00
|
|
|
pythonImportsCheck = [ "googlemaps" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-08 11:47:43 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|