1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 google-api-core, 6 google-cloud-testutils, 7 mock, 8 proto-plus, 9 protobuf, 10 pytest-asyncio, 11 pytestCheckHook, 12 pythonOlder, 13 setuptools, 14}: 15 16buildPythonPackage rec { 17 pname = "google-cloud-trace"; 18 version = "1.16.2"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.7"; 22 23 src = fetchPypi { 24 pname = "google_cloud_trace"; 25 inherit version; 26 hash = "sha256-ib7yI6USRllR60kzW+bWC+4DltV2YC2/VjaEOdMDyrQ="; 27 }; 28 29 build-system = [ setuptools ]; 30 31 dependencies = [ 32 google-api-core 33 proto-plus 34 protobuf 35 ] 36 ++ google-api-core.optional-dependencies.grpc; 37 38 nativeCheckInputs = [ 39 google-cloud-testutils 40 mock 41 pytestCheckHook 42 pytest-asyncio 43 ]; 44 45 disabledTests = [ 46 # Tests require credentials 47 "test_batch_write_spans" 48 "test_list_traces" 49 ]; 50 51 pythonImportsCheck = [ 52 "google.cloud.trace" 53 "google.cloud.trace_v1" 54 "google.cloud.trace_v2" 55 ]; 56 57 meta = with lib; { 58 description = "Cloud Trace API client library"; 59 homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-trace"; 60 changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-trace-v${version}/packages/google-cloud-trace/CHANGELOG.md"; 61 license = licenses.asl20; 62 maintainers = [ ]; 63 }; 64}