2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, asgiref
|
|
|
|
, hatchling
|
|
|
|
, opentelemetry-api
|
|
|
|
, opentelemetry-instrumentation
|
|
|
|
, opentelemetry-semantic-conventions
|
|
|
|
, opentelemetry-test-utils
|
|
|
|
, opentelemetry-util-http
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
buildPythonPackage {
|
|
|
|
inherit (opentelemetry-instrumentation) version src;
|
2023-07-15 17:15:38 +00:00
|
|
|
pname = "opentelemetry-instrumentation-asgi";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
sourceRoot = "${opentelemetry-instrumentation.src.name}/instrumentation/opentelemetry-instrumentation-asgi";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [
|
2023-07-15 17:15:38 +00:00
|
|
|
hatchling
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2023-07-15 17:15:38 +00:00
|
|
|
asgiref
|
|
|
|
opentelemetry-instrumentation
|
|
|
|
opentelemetry-api
|
|
|
|
opentelemetry-semantic-conventions
|
|
|
|
opentelemetry-util-http
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
opentelemetry-test-utils
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "opentelemetry.instrumentation.asgi" ];
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
meta = opentelemetry-instrumentation.meta // {
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/instrumentation/opentelemetry-instrumentation-asgi";
|
|
|
|
description = "ASGI instrumentation for OpenTelemetry";
|
|
|
|
};
|
|
|
|
}
|