2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytest-cov,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
|
|
|
responses,
|
2020-11-09 15:59:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "googlemaps";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "4.10.0";
|
2022-11-21 17:40:18 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
2020-11-09 15:59:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "googlemaps";
|
|
|
|
repo = "google-maps-services-python";
|
2022-11-21 17:40:18 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-8oGZEMKUGaDHKq4qIZy10cbLNMmVclJnQE/dx877pNQ=";
|
2020-11-09 15:59:12 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ requests ];
|
2020-11-09 15:59:12 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-03-19 17:17:44 +00:00
|
|
|
pytest-cov
|
|
|
|
pytestCheckHook
|
|
|
|
responses
|
|
|
|
];
|
2020-11-09 15:59:12 +00:00
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# touches network
|
|
|
|
"test_elevation_along_path_single"
|
|
|
|
"test_transit_without_time"
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "googlemaps" ];
|
2021-03-19 17:17:44 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-11-09 15:59:12 +00:00
|
|
|
description = "Python client library for Google Maps API Web Services";
|
2022-11-21 17:40:18 +00:00
|
|
|
homepage = "https://github.com/googlemaps/google-maps-services-python";
|
2022-11-27 09:42:12 +00:00
|
|
|
changelog = "https://github.com/googlemaps/google-maps-services-python/releases/tag/v${version}";
|
2020-11-09 15:59:12 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ Scriptkiddi ];
|
|
|
|
};
|
|
|
|
}
|