1 { lib, fetchFromGitHub, python3Packages }:
3 python3Packages.buildPythonApplication rec {
4 pname = "sabnzbd_exporter";
9 src = fetchFromGitHub {
12 rev = "refs/tags/${version}";
13 hash = "sha256-c+NbaHYr/CzZ94/i92W2g7+RBSPSmkE2yszNE6L6M6Y=";
16 propagatedBuildInputs = with python3Packages; [ prometheus-client requests ];
22 cp sabnzbd_exporter.py $out/bin/
24 mkdir -p $out/share/${pname}
25 cp examples/* $out/share/${pname}/
31 description = "Prometheus exporter for sabnzbd";
32 homepage = "https://github.com/msroest/sabnzbd_exporter";
33 license = licenses.mit;
34 maintainers = with maintainers; [ fugi ];
35 platforms = platforms.all;
36 mainProgram = "sabnzbd_exporter.py";