@@ -1,21 +1,24 @@
1−{stdenv, fetchurl, python, pythonPackages, cheetahTemplate, makeWrapper, par2cmdline, unzip, unrar}:
1+{stdenv, fetchurl, python, pythonPackages, par2cmdline, unzip, unrar}:
22
33stdenv.mkDerivation rec {
44 version = "0.7.20";
55 name = "sabnzbd-${version}";
6−
6+
77 src = fetchurl {
88 url = "mirror://sourceforge/sabnzbdplus/SABnzbd-${version}-src.tar.gz";
99 sha256 = "0hl7mwgyvm4d68346s7vlv0qlibfh2p2idpyzpjfvk8f79hs9cr0";
1010 };
1111
12− buildInputs = [makeWrapper python sqlite3 cheetahTemplate];
13− inherit stdenv python cheetahTemplate par2cmdline unzip unrar;
14− inherit (pythonPackages) sqlite3;
12+ pythonPath = with pythonPackages; [ pyopenssl sqlite3 cheetah ];
13+ buildInputs = with pythonPackages; [wrapPython];
14+ inherit python par2cmdline unzip unrar;
1515
1616 builder = ./builder.sh;
17−
18− meta = {
17+
18+ meta = with stdenv.lib; {
1919 description = "Usenet NZB downloader, par2 repairer and auto extracting server";
20+ homepage = http://sabnzbd.org;
21+ license = licenses.gpl2Plus;
22+ platforms = platforms.linux;
2023 };
2124}