1{
2 buildPythonPackage,
3 fetchFromGitHub,
4 gitUpdater,
5 google-api-core,
6 google-auth,
7 google-geo-type,
8 lib,
9 proto-plus,
10 protobuf,
11 pytest-asyncio,
12 pytestCheckHook,
13 setuptools,
14}:
15
16buildPythonPackage rec {
17 pname = "google-maps-routing";
18 version = "0.6.15";
19 pyproject = true;
20
21 src = fetchFromGitHub {
22 owner = "googleapis";
23 repo = "google-cloud-python";
24 tag = "google-maps-routing-v${version}";
25 hash = "sha256-5PzidE1CWN+pt7+gcAtbuXyL/pq6cnn0MCRkBfmeUSw=";
26 };
27
28 sourceRoot = "${src.name}/packages/google-maps-routing";
29
30 build-system = [ setuptools ];
31
32 dependencies = [
33 google-api-core
34 google-auth
35 proto-plus
36 protobuf
37 google-geo-type
38 ] ++ google-api-core.optional-dependencies.grpc;
39
40 pythonImportsCheck = [ "google.maps.routing_v2" ];
41
42 nativeCheckInputs = [
43 pytest-asyncio
44 pytestCheckHook
45 ];
46
47 passthru.updateScript = gitUpdater { rev-prefix = "google-maps-routing-v"; };
48
49 meta = {
50 changelog = "https://github.com/googleapis/google-cloud-python/blob/${src.tag}/packages/google-maps-routing/CHANGELOG.md";
51 description = "Google Maps Routing API client library";
52 homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-maps-routing";
53 license = lib.licenses.asl20;
54 maintainers = with lib.maintainers; [ dotlambda ];
55 };
56}