2025-07-24 13:55:40 +02:00

58 lines
1.3 KiB
Nix

{
buildPythonPackage,
fetchFromGitHub,
gitUpdater,
google-api-core,
google-auth,
google-geo-type,
lib,
proto-plus,
protobuf,
pytest-asyncio,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "google-maps-routing";
version = "0.6.16";
pyproject = true;
src = fetchFromGitHub {
owner = "googleapis";
repo = "google-cloud-python";
tag = "google-maps-routing-v${version}";
hash = "sha256-VYkgkVrUgBiUEFF2J8ZFrh2Sw7h653stYxNcpYfRAj4=";
};
sourceRoot = "${src.name}/packages/google-maps-routing";
build-system = [ setuptools ];
dependencies = [
google-api-core
google-auth
proto-plus
protobuf
google-geo-type
]
++ google-api-core.optional-dependencies.grpc;
pythonImportsCheck = [ "google.maps.routing_v2" ];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
passthru.updateScript = gitUpdater { rev-prefix = "google-maps-routing-v"; };
meta = {
changelog = "https://github.com/googleapis/google-cloud-python/blob/${src.tag}/packages/google-maps-routing/CHANGELOG.md";
description = "Google Maps Routing API client library";
homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-maps-routing";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ dotlambda ];
};
}