depot/third_party/nixpkgs/pkgs/development/python-modules/opentelemetry-propagator-aws-xray/default.nix
Default email ae2dc6aea6 Project import generated by Copybara.
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
2024-10-11 07:15:48 +02:00

42 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
hatchling,
opentelemetry-api,
opentelemetry-instrumentation,
opentelemetry-semantic-conventions,
opentelemetry-instrumentation-botocore,
opentelemetry-test-utils,
pytestCheckHook,
requests,
pytest-benchmark,
}:
buildPythonPackage rec {
inherit (opentelemetry-instrumentation) version src;
pname = "opentelemetry-propagator-aws-xray";
pyproject = true;
sourceRoot = "${opentelemetry-instrumentation.src.name}/propagator/opentelemetry-propagator-aws-xray";
build-system = [ hatchling ];
dependencies = [ opentelemetry-api ];
nativeCheckInputs = [
opentelemetry-test-utils
pytestCheckHook
];
checkInputs = [
pytest-benchmark
requests
];
pythonImportsCheck = [ "opentelemetry.propagators.aws" ];
meta = opentelemetry-instrumentation.meta // {
homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/propagator/opentelemetry-propagator-aws-xray";
description = "AWS X-Ray Propagator for OpenTelemetry";
};
}