2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
lib,
|
|
|
|
google-api-core,
|
|
|
|
opencensus-context,
|
2022-10-30 15:09:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "opencensus";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.11.4";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-10-30 15:09:59 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-y++H2Lh3MGSrYOXCoc7Vi7qjim0FLEGuwiSVjOVE7/I=";
|
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
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +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
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "opencensus.common" ];
|
2022-10-30 15:09:59 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Stats collection and distributed tracing framework";
|
2022-10-30 15:09:59 +00:00
|
|
|
homepage = "https://github.com/census-instrumentation/opencensus-python";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ billhuang ];
|
|
|
|
};
|
|
|
|
}
|