2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
hatchling,
|
|
|
|
opentelemetry-instrumentation,
|
|
|
|
opentelemetry-test-utils,
|
|
|
|
pytestCheckHook,
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
|
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";
|
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}/util/opentelemetry-util-http";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ hatchling ];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
nativeCheckInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
opentelemetry-instrumentation
|
2023-07-15 17:15:38 +00:00
|
|
|
opentelemetry-test-utils
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
# https://github.com/open-telemetry/opentelemetry-python-contrib/issues/1940
|
|
|
|
disabledTests = [
|
|
|
|
"test_nonstandard_method"
|
|
|
|
"test_nonstandard_method_allowed"
|
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
pythonImportsCheck = [ "opentelemetry.util.http" ];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|