Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 python3, 4 fetchPypi, 5 nixosTests, 6}: 7 8python3.pkgs.buildPythonApplication rec { 9 pname = "prometheus_pve_exporter"; 10 version = "3.5.5"; 11 format = "setuptools"; 12 13 src = fetchPypi { 14 inherit pname version; 15 hash = "sha256-QFo/gnRF6+mk/xs6vJCxbR64LI3JwrLVwXib6tcEN8g="; 16 }; 17 18 propagatedBuildInputs = with python3.pkgs; [ 19 prometheus-client 20 proxmoxer 21 pyyaml 22 requests 23 werkzeug 24 gunicorn 25 ]; 26 27 doCheck = false; 28 29 pythonImportsCheck = [ "pve_exporter" ]; 30 31 passthru.tests = { 32 inherit (nixosTests.prometheus-exporters) pve; 33 }; 34 35 meta = with lib; { 36 description = "Exposes information gathered from Proxmox VE cluster for use by the Prometheus monitoring system"; 37 mainProgram = "pve_exporter"; 38 homepage = "https://github.com/prometheus-pve/prometheus-pve-exporter"; 39 license = licenses.asl20; 40 maintainers = with maintainers; [ nukaduka ]; 41 }; 42}