555cd8a8f9
GitOrigin-RevId: 5633bcff0c6162b9e4b5f1264264611e950c8ec7
46 lines
1.1 KiB
Nix
46 lines
1.1 KiB
Nix
{
|
|
buildPythonPackage,
|
|
requests,
|
|
hatchling,
|
|
opentelemetry-api,
|
|
opentelemetry-instrumentation,
|
|
opentelemetry-semantic-conventions,
|
|
opentelemetry-util-http,
|
|
httpretty,
|
|
opentelemetry-test-utils,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
inherit (opentelemetry-instrumentation) version src;
|
|
pname = "opentelemetry-instrumentation-requests";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
sourceRoot = "${opentelemetry-instrumentation.src.name}/instrumentation/opentelemetry-instrumentation-requests";
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [
|
|
opentelemetry-api
|
|
opentelemetry-instrumentation
|
|
opentelemetry-semantic-conventions
|
|
opentelemetry-util-http
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
httpretty
|
|
opentelemetry-test-utils
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "opentelemetry.instrumentation.requests" ];
|
|
|
|
meta = opentelemetry-instrumentation.meta // {
|
|
homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/instrumentation/opentelemetry-instrumentation-requests";
|
|
description = "Requests instrumentation for OpenTelemetry";
|
|
};
|
|
}
|