2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, backoff
|
|
|
|
, googleapis-common-protos
|
|
|
|
, hatchling
|
2023-08-04 22:07:22 +00:00
|
|
|
, opentelemetry-api
|
2023-07-15 17:15:38 +00:00
|
|
|
, opentelemetry-exporter-otlp-proto-common
|
|
|
|
, opentelemetry-test-utils
|
|
|
|
, requests
|
|
|
|
, responses
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
buildPythonPackage {
|
|
|
|
inherit (opentelemetry-api) version src;
|
2023-07-15 17:15:38 +00:00
|
|
|
pname = "opentelemetry-exporter-otlp-proto-http";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
sourceRoot = "source/exporter/opentelemetry-exporter-otlp-proto-http";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
hatchling
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
backoff
|
|
|
|
googleapis-common-protos
|
|
|
|
opentelemetry-exporter-otlp-proto-common
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
opentelemetry-test-utils
|
|
|
|
pytestCheckHook
|
|
|
|
responses
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "opentelemetry.exporter.otlp.proto.http" ];
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
meta = opentelemetry-api.meta // {
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://github.com/open-telemetry/opentelemetry-python/tree/main/exporter/opentelemetry-exporter-otlp-proto-http";
|
|
|
|
description = "OpenTelemetry Collector Protobuf over HTTP Exporter";
|
|
|
|
};
|
|
|
|
}
|