From aaa57ba41aefd83140e35cb589df7710c19ddbb1 Mon Sep 17 00:00:00 2001 From: Adam Stephens Date: Fri, 12 Jul 2024 08:57:10 -0400 Subject: [PATCH] sabnzbd: apply nixfmt --- pkgs/by-name/sa/sabnzbd/package.nix | 111 ++++++++++++++++------------ 1 file changed, 63 insertions(+), 48 deletions(-) diff --git a/pkgs/by-name/sa/sabnzbd/package.nix b/pkgs/by-name/sa/sabnzbd/package.nix index 5eac94f6aa6e..6978589811bc 100644 --- a/pkgs/by-name/sa/sabnzbd/package.nix +++ b/pkgs/by-name/sa/sabnzbd/package.nix @@ -1,53 +1,65 @@ -{ lib, stdenv -, coreutils -, fetchFromGitHub -, python3 -, par2cmdline-turbo -, unzip -, unrar -, p7zip -, util-linux -, makeWrapper -, nixosTests +{ + lib, + stdenv, + coreutils, + fetchFromGitHub, + python3, + par2cmdline-turbo, + unzip, + unrar, + p7zip, + util-linux, + makeWrapper, + nixosTests, }: let - pythonEnv = python3.withPackages(ps: with ps; [ - apprise - babelfish - cffi - chardet - cheetah3 - cheroot - cherrypy - configobj - cryptography - feedparser - guessit - jaraco-classes - jaraco-collections - jaraco-context - jaraco-functools - jaraco-text - more-itertools - notify2 - orjson - portend - puremagic - pycparser - pysocks - python-dateutil - pytz - rebulk - sabctools - sabyenc3 - sgmllib3k - six - tempora - zc-lockfile - ]); - path = lib.makeBinPath [ coreutils par2cmdline-turbo unrar unzip p7zip util-linux ]; -in stdenv.mkDerivation rec { + pythonEnv = python3.withPackages ( + ps: with ps; [ + apprise + babelfish + cffi + chardet + cheetah3 + cheroot + cherrypy + configobj + cryptography + feedparser + guessit + jaraco-classes + jaraco-collections + jaraco-context + jaraco-functools + jaraco-text + more-itertools + notify2 + orjson + portend + puremagic + pycparser + pysocks + python-dateutil + pytz + rebulk + sabctools + sabyenc3 + sgmllib3k + six + tempora + zc-lockfile + ] + ); + path = lib.makeBinPath [ + coreutils + par2cmdline-turbo + unrar + unzip + p7zip + util-linux + ]; +in +stdenv.mkDerivation rec { version = "4.3.2"; pname = "sabnzbd"; @@ -83,7 +95,10 @@ in stdenv.mkDerivation rec { homepage = "https://sabnzbd.org"; license = licenses.gpl2Plus; platforms = platforms.linux; - maintainers = with lib.maintainers; [ jojosch adamcstephens ]; + maintainers = with lib.maintainers; [ + jojosch + adamcstephens + ]; mainProgram = "sabnzbd"; }; }