2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, hatchling
|
|
|
|
, opentelemetry-instrumentation
|
|
|
|
, opentelemetry-sdk
|
|
|
|
, opentelemetry-semantic-conventions
|
|
|
|
, opentelemetry-test-utils
|
|
|
|
, 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-util-http";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
sourceRoot = "source/util/opentelemetry-util-http";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
hatchling
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
opentelemetry-instrumentation
|
|
|
|
opentelemetry-sdk
|
|
|
|
opentelemetry-semantic-conventions
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
opentelemetry-test-utils
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "opentelemetry.util.http" ];
|
|
|
|
|
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/tree/main/util/opentelemetry-util-http";
|
|
|
|
description = "Web util for OpenTelemetry";
|
|
|
|
};
|
|
|
|
}
|