Files
nixpkgs/pkgs/development/python-modules/google-cloud-trace/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

65 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.16.2";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "google_cloud_trace";
inherit version;
hash = "sha256-ib7yI6USRllR60kzW+bWC+4DltV2YC2/VjaEOdMDyrQ=";
};
build-system = [ setuptools ];
dependencies = [
google-api-core
proto-plus
protobuf
]
++ google-api-core.optional-dependencies.grpc;
nativeCheckInputs = [
google-cloud-testutils
mock
pytestCheckHook
pytest-asyncio
];
disabledTests = [
# Tests require credentials
"test_batch_write_spans"
"test_list_traces"
];
pythonImportsCheck = [
"google.cloud.trace"
"google.cloud.trace_v1"
"google.cloud.trace_v2"
];
meta = {
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 = lib.licenses.asl20;
maintainers = [ ];
};
}