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
46 lines
875 B
Nix
46 lines
875 B
Nix
{
|
|
lib,
|
|
python3,
|
|
fetchPypi,
|
|
nixosTests,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "knot-exporter";
|
|
version = "3.5.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "knot_exporter";
|
|
inherit version;
|
|
hash = "sha256-uFCIM+pZiJ6nvapEKjgHRrIuc5p5uq5q1ToD36e19zk=";
|
|
};
|
|
|
|
build-system = [
|
|
python3.pkgs.hatchling
|
|
];
|
|
|
|
dependencies = with python3.pkgs; [
|
|
libknot
|
|
prometheus-client
|
|
psutil
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"knot_exporter"
|
|
];
|
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) knot; };
|
|
|
|
meta = with lib; {
|
|
description = "Prometheus exporter for Knot DNS";
|
|
homepage = "https://gitlab.nic.cz/knot/knot-dns/-/tree/master/python/knot_exporter";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [
|
|
ma27
|
|
hexa
|
|
];
|
|
mainProgram = "knot-exporter";
|
|
};
|
|
}
|