Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / opentelemetry-exporter-prometheus / default.nix
blob1ccd6b472e183419e9563e4164ebad1d4d791012
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) src;
14   pname = "opentelemetry-exporter-prometheus";
15   version = "0.44b0";
16   pyproject = true;
18   disabled = pythonOlder "3.8";
20   sourceRoot = "${opentelemetry-api.src.name}/exporter/opentelemetry-exporter-prometheus";
22   build-system = [
23     hatchling
24   ];
26   dependencies = [
27     opentelemetry-api
28     opentelemetry-sdk
29     prometheus-client
30   ];
32   nativeCheckInputs = [
33     opentelemetry-test-utils
34     pytestCheckHook
35   ];
37   pythonImportsCheck = [ "opentelemetry.exporter.prometheus" ];
39   meta = opentelemetry-api.meta // {
40     homepage = "https://github.com/open-telemetry/opentelemetry-python/tree/main/exporter/opentelemetry-exporter-prometheus";
41     description = "Prometheus Metric Exporter for OpenTelemetry";
42   };