2023-04-17 17:35:34 -04:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
hatchling,
|
|
|
|
opentelemetry-instrumentation,
|
|
|
|
opentelemetry-test-utils,
|
|
|
|
pytestCheckHook,
|
|
|
|
}:
|
|
|
|
|
2023-07-30 09:07:55 +09:00
|
|
|
buildPythonPackage {
|
|
|
|
inherit (opentelemetry-instrumentation) version src;
|
2023-04-17 17:35:34 -04:00
|
|
|
pname = "opentelemetry-util-http";
|
2024-03-09 09:38:35 +09:00
|
|
|
pyproject = true;
|
2023-04-17 17:35:34 -04:00
|
|
|
|
2024-03-09 09:38:35 +09:00
|
|
|
disabled = pythonOlder "3.8";
|
2023-04-17 17:35:34 -04:00
|
|
|
|
2024-03-09 09:38:35 +09:00
|
|
|
sourceRoot = "${opentelemetry-instrumentation.src.name}/util/opentelemetry-util-http";
|
2023-04-17 17:35:34 -04:00
|
|
|
|
2024-03-09 09:38:35 +09:00
|
|
|
build-system = [ hatchling ];
|
2023-04-17 17:35:34 -04:00
|
|
|
|
|
|
|
nativeCheckInputs = [
|
2024-03-09 09:38:35 +09:00
|
|
|
opentelemetry-instrumentation
|
2023-04-17 17:35:34 -04:00
|
|
|
opentelemetry-test-utils
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-01-20 15:19:34 +01:00
|
|
|
# https://github.com/open-telemetry/opentelemetry-python-contrib/issues/1940
|
|
|
|
disabledTests = [
|
|
|
|
"test_nonstandard_method"
|
|
|
|
"test_nonstandard_method_allowed"
|
|
|
|
];
|
|
|
|
|
2023-04-17 17:35:34 -04:00
|
|
|
pythonImportsCheck = [ "opentelemetry.util.http" ];
|
|
|
|
|
2024-03-09 09:38:35 +09:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2023-07-30 09:07:55 +09:00
|
|
|
meta = opentelemetry-instrumentation.meta // {
|
2023-04-17 17:35:34 -04:00
|
|
|
homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/util/opentelemetry-util-http";
|
|
|
|
description = "Web util for OpenTelemetry";
|
|
|
|
};
|
|
|
|
}
|