2022-10-30 15:09:59 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, lib
|
|
|
|
, unittestCheckHook
|
|
|
|
, google-api-core
|
2023-01-20 10:41:00 +00:00
|
|
|
, opencensus-context
|
2022-10-30 15:09:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "opencensus";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "0.11.1";
|
2022-10-30 15:09:59 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-tS3WtAE8Ezpr6fD/LpBoxkAdMzKw7MX67z3WxCFm9vM=";
|
2022-10-30 15:09:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
google-api-core
|
2023-01-20 10:41:00 +00:00
|
|
|
opencensus-context
|
2022-10-30 15:09:59 +00:00
|
|
|
];
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
pythonNamespaces = [
|
|
|
|
"opencensus.common"
|
|
|
|
];
|
2022-10-30 15:09:59 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
doCheck = false; # No tests in sdist
|
2022-10-30 15:09:59 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"opencensus.common"
|
|
|
|
];
|
2022-10-30 15:09:59 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A stats collection and distributed tracing framework";
|
|
|
|
homepage = "https://github.com/census-instrumentation/opencensus-python";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ billhuang ];
|
|
|
|
};
|
|
|
|
}
|