diff --git a/pkgs/servers/monitoring/prometheus/sabnzbd-exporter.nix b/pkgs/servers/monitoring/prometheus/sabnzbd-exporter.nix index ab7e23ccc4c4..05034b4b3327 100644 --- a/pkgs/servers/monitoring/prometheus/sabnzbd-exporter.nix +++ b/pkgs/servers/monitoring/prometheus/sabnzbd-exporter.nix @@ -1,8 +1,13 @@ -{ lib, fetchFromGitHub, python3Packages }: +{ + lib, + fetchFromGitHub, + python3Packages, + nixosTests, +}: python3Packages.buildPythonApplication rec { pname = "sabnzbd_exporter"; - version = "0.1.73"; + version = "0.1.78"; format = "other"; @@ -10,10 +15,13 @@ python3Packages.buildPythonApplication rec { owner = "msroest"; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-c+NbaHYr/CzZ94/i92W2g7+RBSPSmkE2yszNE6L6M6Y="; + hash = "sha256-BLqG2I7D/bqRj6+/LUKOimmTRTH/kRdukkGdOJT3+PA="; }; - propagatedBuildInputs = with python3Packages; [ prometheus-client requests ]; + propagatedBuildInputs = with python3Packages; [ + prometheus-client + requests + ]; installPhase = '' runHook preInstall @@ -27,6 +35,10 @@ python3Packages.buildPythonApplication rec { runHook postInstall ''; + passthru.tests = { + inherit (nixosTests.prometheus-exporters) sabnzbd; + }; + meta = with lib; { description = "Prometheus exporter for sabnzbd"; homepage = "https://github.com/msroest/sabnzbd_exporter";