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