8 python3Packages.buildPythonApplication rec {
9 pname = "sabnzbd_exporter";
14 src = fetchFromGitHub {
17 rev = "refs/tags/${version}";
18 hash = "sha256-BLqG2I7D/bqRj6+/LUKOimmTRTH/kRdukkGdOJT3+PA=";
21 propagatedBuildInputs = with python3Packages; [
30 cp sabnzbd_exporter.py $out/bin/
32 mkdir -p $out/share/${pname}
33 cp examples/* $out/share/${pname}/
39 inherit (nixosTests.prometheus-exporters) sabnzbd;
43 description = "Prometheus exporter for sabnzbd";
44 homepage = "https://github.com/msroest/sabnzbd_exporter";
45 license = licenses.mit;
46 maintainers = with maintainers; [ fugi ];
47 platforms = platforms.all;
48 mainProgram = "sabnzbd_exporter.py";