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
43 lines
913 B
Nix
43 lines
913 B
Nix
{
|
|
lib,
|
|
python3,
|
|
fetchPypi,
|
|
nixosTests,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "prometheus_pve_exporter";
|
|
version = "3.5.5";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-QFo/gnRF6+mk/xs6vJCxbR64LI3JwrLVwXib6tcEN8g=";
|
|
};
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
prometheus-client
|
|
proxmoxer
|
|
pyyaml
|
|
requests
|
|
werkzeug
|
|
gunicorn
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "pve_exporter" ];
|
|
|
|
passthru.tests = {
|
|
inherit (nixosTests.prometheus-exporters) pve;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Exposes information gathered from Proxmox VE cluster for use by the Prometheus monitoring system";
|
|
mainProgram = "pve_exporter";
|
|
homepage = "https://github.com/prometheus-pve/prometheus-pve-exporter";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ nukaduka ];
|
|
};
|
|
}
|