prometheus-sabnzbd-exporter: format with nixfmt-rfc-style

This commit is contained in:
Fugi 2024-11-22 17:50:32 +01:00
parent 8ed6119fbb
commit 9bd6a6b497
No known key found for this signature in database
GPG Key ID: 4472A20091BFA792

View File

@ -1,4 +1,9 @@
{ lib, fetchFromGitHub, python3Packages, nixosTests }:
{
lib,
fetchFromGitHub,
python3Packages,
nixosTests,
}:
python3Packages.buildPythonApplication rec {
pname = "sabnzbd_exporter";
@ -13,7 +18,10 @@ python3Packages.buildPythonApplication rec {
hash = "sha256-BLqG2I7D/bqRj6+/LUKOimmTRTH/kRdukkGdOJT3+PA=";
};
propagatedBuildInputs = with python3Packages; [ prometheus-client requests ];
propagatedBuildInputs = with python3Packages; [
prometheus-client
requests
];
installPhase = ''
runHook preInstall
@ -27,7 +35,9 @@ python3Packages.buildPythonApplication rec {
runHook postInstall
'';
passthru.tests = { inherit (nixosTests.prometheus-exporters) sabnzbd; };
passthru.tests = {
inherit (nixosTests.prometheus-exporters) sabnzbd;
};
meta = with lib; {
description = "Prometheus exporter for sabnzbd";