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