Unverified Commit 28230fab authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

Merge pull request #297306 from mweinelt/kea-exporter-0.6.1

prometheus-kea-exporter: 0.5.1 -> 0.6.1
parents 2b12fc72 a466aaa7
Loading
Loading
Loading
Loading
+12 −5
Original line number Diff line number Diff line
{ lib, python3Packages, fetchPypi, nixosTests }:
{ lib
, python3Packages
, fetchPypi
, nixosTests
}:

python3Packages.buildPythonApplication rec {
  pname = "kea-exporter";
  version = "0.5.1";
  version = "0.6.1";
  format = "pyproject";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-rNGA5XEx9xVUP1SeDPgXcaqgDhgX6JFhRX9GM454P5A=";
    pname = "kea_exporter";
    inherit version;
    hash = "sha256-PyNFSTDqT+PBY7d9NSG1FVhN+Y3ID13T6859kBYsFzU=";
  };

  nativeBuildInputs = with python3Packages; [
    pdm-pep517
    pdm-backend
  ];

  propagatedBuildInputs = with python3Packages; [
    click
    prometheus-client
    requests
  ];

  checkPhase = ''
@@ -29,6 +35,7 @@ python3Packages.buildPythonApplication rec {
  };

  meta = with lib; {
    changelog = "https://github.com/mweinelt/kea-exporter/blob/v${version}/HISTORY";
    description = "Export Kea Metrics in the Prometheus Exposition Format";
    mainProgram = "kea-exporter";
    homepage = "https://github.com/mweinelt/kea-exporter";