depot/third_party/nixpkgs/pkgs/by-name/pr/prometheus-deluge-exporter/package.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

34 lines
771 B
Nix

{ lib
, python3
, fetchFromGitHub
}:
python3.pkgs.buildPythonApplication rec {
pname = "deluge-exporter";
version = "2.4.0-unstable-2024-06-02";
src = fetchFromGitHub {
owner = "ibizaman";
repo = "deluge_exporter";
rev = "8d446c8cba4a324aa052e66c115121b23adc970f";
hash = "sha256-1brLWx6IEGffcvHPCkz10k9GCNQIXXJ9PYZuEzlKHTA=";
};
propagatedBuildInputs = with python3.pkgs; [
deluge-client
loguru
prometheus-client
];
pythonImportsCheck = [
"deluge_exporter"
];
meta = with lib; {
description = "Prometheus exporter for Deluge";
homepage = "https://github.com/ibizaman/deluge_exporter";
license = licenses.isc;
maintainers = with maintainers; [ ibizaman ];
mainProgram = "deluge-exporter";
};
}