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, pythonOlder
12}:
13
14buildPythonPackage rec {
15 pname = "google-cloud-trace";
16 version = "1.7.3";
17 format = "setuptools";
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-HFntFmPn3FPhCrB+nnJlBD9zqG2jDsP2naEl2IxhRqE=";
24 };
25
26 propagatedBuildInputs = [
27 google-api-core
28 google-cloud-core
29 proto-plus
30 ];
31
32 checkInputs = [
33 google-cloud-testutils
34 mock
35 pytestCheckHook
36 pytest-asyncio
37 ];
38
39 disabledTests = [
40 # require credentials
41 "test_batch_write_spans"
42 "test_list_traces"
43 ];
44
45 pythonImportsCheck = [
46 "google.cloud.trace"
47 "google.cloud.trace_v1"
48 "google.cloud.trace_v2"
49 ];
50
51 meta = with lib; {
52 description = "Cloud Trace API client library";
53 homepage = "https://github.com/googleapis/python-trace";
54 license = licenses.asl20;
55 maintainers = with maintainers; [ SuperSandro2000 ];
56 };
57}