Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / opentelemetry-exporter-otlp / default.nix
blob7dcc282e153680c5b0b7685fed8340c3c4368f88
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , backoff
5 , hatchling
6 , opentelemetry-api
7 , opentelemetry-exporter-otlp-proto-grpc
8 , opentelemetry-exporter-otlp-proto-http
9 , pytestCheckHook
12 buildPythonPackage {
13   inherit (opentelemetry-api) version src;
14   pname = "opentelemetry-exporter-otlp";
15   disabled = pythonOlder "3.7";
17   sourceRoot = "${opentelemetry-api.src.name}/exporter/opentelemetry-exporter-otlp";
19   format = "pyproject";
21   nativeBuildInputs = [
22     hatchling
23   ];
25   propagatedBuildInputs = [
26     opentelemetry-exporter-otlp-proto-grpc
27     opentelemetry-exporter-otlp-proto-http
28   ];
30   nativeCheckInputs = [
31     pytestCheckHook
32   ];
34   pythonImportsCheck = [ "opentelemetry.exporter.otlp" ];
36   meta = opentelemetry-api.meta // {
37     homepage = "https://github.com/open-telemetry/opentelemetry-python/tree/main/exporter/opentelemetry-exporter-otlp";
38     description = "OpenTelemetry Collector Exporters";
39   };