Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / opentelemetry-exporter-prometheus / default.nix
blob7708b404a980c6d4cb92acfe9db4db84263fcf03
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , hatchling
5 , opentelemetry-api
6 , opentelemetry-sdk
7 , opentelemetry-test-utils
8 , prometheus-client
9 , pytestCheckHook
12 buildPythonPackage {
13   inherit (opentelemetry-api) version src;
14   pname = "opentelemetry-exporter-prometheus";
15   disabled = pythonOlder "3.7";
17   sourceRoot = "${opentelemetry-api.src.name}/exporter/opentelemetry-exporter-prometheus";
19   format = "pyproject";
21   nativeBuildInputs = [
22     hatchling
23   ];
25   propagatedBuildInputs = [
26     opentelemetry-api
27     opentelemetry-sdk
28     prometheus-client
29   ];
31   nativeCheckInputs = [
32     opentelemetry-test-utils
33     pytestCheckHook
34   ];
36   pythonImportsCheck = [ "opentelemetry.exporter.prometheus" ];
38   meta = opentelemetry-api.meta // {
39     homepage = "https://github.com/open-telemetry/opentelemetry-python/tree/main/exporter/opentelemetry-exporter-prometheus";
40     description = "Prometheus Metric Exporter for OpenTelemetry";
41   };