2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, hatchling
|
2023-08-04 22:07:22 +00:00
|
|
|
, opentelemetry-api
|
2023-07-15 17:15:38 +00:00
|
|
|
, protobuf
|
|
|
|
, 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-proto";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
sourceRoot = "${opentelemetry-api.src.name}/opentelemetry-proto";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
hatchling
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
protobuf
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "opentelemetry.proto" ];
|
|
|
|
|
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/opentelemetry-proto";
|
|
|
|
description = "OpenTelemetry Python Proto";
|
|
|
|
};
|
|
|
|
}
|