depot/third_party/nixpkgs/pkgs/development/python-modules/opencensus/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

37 lines
800 B
Nix

{
buildPythonPackage,
fetchPypi,
lib,
unittestCheckHook,
google-api-core,
opencensus-context,
}:
buildPythonPackage rec {
pname = "opencensus";
version = "0.11.4";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-y++H2Lh3MGSrYOXCoc7Vi7qjim0FLEGuwiSVjOVE7/I=";
};
propagatedBuildInputs = [
google-api-core
opencensus-context
];
pythonNamespaces = [ "opencensus.common" ];
doCheck = false; # No tests in sdist
pythonImportsCheck = [ "opencensus.common" ];
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 ];
};
}