nixpkgs/pkgs/servers/monitoring/prometheus/pve-exporter.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
850 B
Nix
Raw Normal View History

2022-03-02 21:29:27 +03:00
{ lib
, python3
, fetchPypi
2022-03-02 21:29:27 +03:00
, nixosTests
}:
python3.pkgs.buildPythonApplication rec {
pname = "prometheus-pve-exporter";
version = "3.2.2";
2022-03-02 21:29:27 +03:00
src = fetchPypi {
2022-03-02 21:29:27 +03:00
inherit pname version;
sha256 = "sha256-E1hxYslVaMpoeCsTrw/7D0Ycq+GzMpJ0e6B4mEe/UJs=";
2022-03-02 21:29:27 +03:00
};
propagatedBuildInputs = with python3.pkgs; [
prometheus-client
proxmoxer
pyyaml
requests
werkzeug
gunicorn
2022-03-02 21:29:27 +03:00
];
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";
homepage = "https://github.com/prometheus-pve/prometheus-pve-exporter";
license = licenses.asl20;
maintainers = with maintainers; [ nukaduka ];
};
}