depot/third_party/nixpkgs/pkgs/development/python-modules/google-cloud-trace/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

62 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
google-api-core,
google-cloud-testutils,
mock,
proto-plus,
protobuf,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "google-cloud-trace";
version = "1.13.3";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-NqwuM94NsBf/0vY9jWTct1vpETzPpN5JYvRzfv1srIA=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
google-api-core
proto-plus
protobuf
] ++ google-api-core.optional-dependencies.grpc;
nativeCheckInputs = [
google-cloud-testutils
mock
pytestCheckHook
pytest-asyncio
];
disabledTests = [
# require credentials
"test_batch_write_spans"
"test_list_traces"
];
pythonImportsCheck = [
"google.cloud.trace"
"google.cloud.trace_v1"
"google.cloud.trace_v2"
];
meta = with lib; {
description = "Cloud Trace API client library";
homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-trace";
changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-trace-v${version}/packages/google-cloud-trace/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}