Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
1.0 KiB
Nix
47 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
python3Packages,
|
|
fetchPypi,
|
|
nixosTests,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "kea-exporter";
|
|
version = "0.7.0";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
pname = "kea_exporter";
|
|
inherit version;
|
|
hash = "sha256-kn2iwYWcyW90tgfWmzLF7rU06fJyLRzqYKNLOgu/Yqk=";
|
|
};
|
|
|
|
nativeBuildInputs = with python3Packages; [
|
|
pdm-backend
|
|
];
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
click
|
|
prometheus-client
|
|
requests
|
|
];
|
|
|
|
checkPhase = ''
|
|
$out/bin/kea-exporter --help > /dev/null
|
|
$out/bin/kea-exporter --version | grep -q ${version}
|
|
'';
|
|
|
|
passthru.tests = {
|
|
inherit (nixosTests) kea;
|
|
};
|
|
|
|
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";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ hexa ];
|
|
};
|
|
}
|