1{ buildPythonPackage
2, fetchPypi
3, lib
4, unittestCheckHook
5, google-api-core
6, opencensus-context
7}:
8
9buildPythonPackage rec {
10 pname = "opencensus";
11 version = "0.11.3";
12
13 src = fetchPypi {
14 inherit pname version;
15 hash = "sha256-r3qYvVHmOWgUTXcvNG1pbtSYoy29xL4mfNYBHEzgXag=";
16 };
17
18 propagatedBuildInputs = [
19 google-api-core
20 opencensus-context
21 ];
22
23 pythonNamespaces = [
24 "opencensus.common"
25 ];
26
27 doCheck = false; # No tests in sdist
28
29 pythonImportsCheck = [
30 "opencensus.common"
31 ];
32
33 meta = with lib; {
34 description = "A stats collection and distributed tracing framework";
35 homepage = "https://github.com/census-instrumentation/opencensus-python";
36 license = licenses.asl20;
37 maintainers = with maintainers; [ billhuang ];
38 };
39}