biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / opentelemetry-exporter-prometheus / default.nix
blob36b4b4cb5449ffca1bb49e2401daa74c6760fe40
2   buildPythonPackage,
3   pythonOlder,
4   hatchling,
5   opentelemetry-api,
6   opentelemetry-instrumentation,
7   opentelemetry-sdk,
8   opentelemetry-test-utils,
9   prometheus-client,
10   pytestCheckHook,
13 buildPythonPackage {
14   inherit (opentelemetry-api) src;
15   pname = "opentelemetry-exporter-prometheus";
16   # This package is in the same repository as `opentelemetry-api`,
17   # but its version is synchronized with `opentelemetry-instrumentation` in another repository.
18   version = opentelemetry-instrumentation.version;
19   pyproject = true;
21   disabled = pythonOlder "3.8";
23   sourceRoot = "${opentelemetry-api.src.name}/exporter/opentelemetry-exporter-prometheus";
25   build-system = [ hatchling ];
27   dependencies = [
28     opentelemetry-api
29     opentelemetry-sdk
30     prometheus-client
31   ];
33   nativeCheckInputs = [
34     opentelemetry-test-utils
35     pytestCheckHook
36   ];
38   pythonImportsCheck = [ "opentelemetry.exporter.prometheus" ];
40   meta = opentelemetry-api.meta // {
41     homepage = "https://github.com/open-telemetry/opentelemetry-python/tree/main/exporter/opentelemetry-exporter-prometheus";
42     description = "Prometheus Metric Exporter for OpenTelemetry";
43   };