python3Packages.opentelemetry-instrumentation-botocore: init at 0.47b0

This commit is contained in:
Jonas Heinrich 2024-10-10 08:20:14 +00:00
parent 31d7f267cd
commit e740696edc
2 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,52 @@
{
lib,
buildPythonPackage,
hatchling,
opentelemetry-api,
opentelemetry-instrumentation,
opentelemetry-semantic-conventions,
botocore,
moto,
opentelemetry-test-utils,
opentelemetry-propagator-aws-xray,
pytestCheckHook,
aws-xray-sdk,
}:
buildPythonPackage rec {
inherit (opentelemetry-instrumentation) version src;
pname = "opentelemetry-instrumentation-botocore";
pyproject = true;
sourceRoot = "${opentelemetry-instrumentation.src.name}/instrumentation/opentelemetry-instrumentation-botocore";
build-system = [ hatchling ];
dependencies = [
opentelemetry-api
opentelemetry-instrumentation
opentelemetry-propagator-aws-xray
opentelemetry-semantic-conventions
];
nativeCheckInputs = [
opentelemetry-test-utils
pytestCheckHook
];
checkInputs = [
aws-xray-sdk
moto
];
optional-dependencies = {
instruments = [ botocore ];
};
pythonImportsCheck = [ "opentelemetry.instrumentation.botocore" ];
meta = opentelemetry-instrumentation.meta // {
homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/instrumentation/opentelemetry-instrumentation-botocore";
description = "Botocore instrumentation for OpenTelemetry";
};
}

View File

@ -9401,6 +9401,8 @@ self: super: with self; {
opentelemetry-instrumentation-celery = callPackage ../development/python-modules/opentelemetry-instrumentation-celery { };
opentelemetry-instrumentation-botocore = callPackage ../development/python-modules/opentelemetry-instrumentation-botocore { };
opentelemetry-instrumentation-dbapi = callPackage ../development/python-modules/opentelemetry-instrumentation-dbapi { };
opentelemetry-instrumentation-django = callPackage ../development/python-modules/opentelemetry-instrumentation-django { };