1{ lib
2, buildPythonPackage
3, fetchPypi
4, google-api-core
5, google-cloud-core
6, google-cloud-testutils
7, mock
8, proto-plus
9, pytestCheckHook
10, pytest-asyncio
11}:
12
13buildPythonPackage rec {
14 pname = "google-cloud-trace";
15 version = "1.5.1";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "fd4cb8a9efa20598c35a4e6f7ac013a04868e37d7d4ff4ec3080f528b06f8a0e";
20 };
21
22 propagatedBuildInputs = [ google-api-core google-cloud-core proto-plus ];
23
24 checkInputs = [ google-cloud-testutils mock pytestCheckHook pytest-asyncio ];
25
26 disabledTests = [
27 # require credentials
28 "test_batch_write_spans"
29 "test_list_traces"
30 ];
31
32 pythonImportsCheck = [
33 "google.cloud.trace"
34 "google.cloud.trace_v1"
35 "google.cloud.trace_v2"
36 ];
37
38 meta = with lib; {
39 description = "Cloud Trace API client library";
40 homepage = "https://github.com/googleapis/python-trace";
41 license = licenses.asl20;
42 maintainers = with maintainers; [ SuperSandro2000 ];
43 };
44}