47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
|
{
|
||
|
lib,
|
||
|
buildPythonPackage,
|
||
|
hatchling,
|
||
|
opentelemetry-api,
|
||
|
opentelemetry-instrumentation,
|
||
|
opentelemetry-semantic-conventions,
|
||
|
opentelemetry-test-utils,
|
||
|
billiard,
|
||
|
celery,
|
||
|
pytestCheckHook,
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
inherit (opentelemetry-instrumentation) version src;
|
||
|
pname = "opentelemetry-instrumentation-celery";
|
||
|
pyproject = true;
|
||
|
|
||
|
sourceRoot = "${opentelemetry-instrumentation.src.name}/instrumentation/opentelemetry-instrumentation-celery";
|
||
|
|
||
|
build-system = [ hatchling ];
|
||
|
|
||
|
dependencies = [
|
||
|
billiard
|
||
|
celery
|
||
|
opentelemetry-api
|
||
|
opentelemetry-instrumentation
|
||
|
opentelemetry-semantic-conventions
|
||
|
];
|
||
|
|
||
|
optional-dependencies = {
|
||
|
instruments = [ celery ];
|
||
|
};
|
||
|
|
||
|
nativeCheckInputs = [
|
||
|
opentelemetry-test-utils
|
||
|
pytestCheckHook
|
||
|
];
|
||
|
|
||
|
pythonImportsCheck = [ "opentelemetry.instrumentation.celery" ];
|
||
|
|
||
|
meta = opentelemetry-instrumentation.meta // {
|
||
|
homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/instrumentation/opentelemetry-instrumentation-celery";
|
||
|
description = "Celery instrumentation for OpenTelemetry";
|
||
|
};
|
||
|
}
|