@@ -1,20 +1,24 @@
1−{stdenv, fetchurl, python, pythonPackages, cheetahTemplate, makeWrapper, par2cmdline, unzip, unrar}:
1+{stdenv, fetchurl, python, pythonPackages, par2cmdline, unzip, unrar}:
22
33stdenv.mkDerivation rec {
4− name = "sabnzbd-0.7.17";
5−
4+ version = "0.7.20";
5+ name = "sabnzbd-${version}";
6+
67 src = fetchurl {
7− url = mirror://sourceforge/sabnzbdplus/SABnzbd-0.7.17-src.tar.gz;
8− sha256 = "02gbh3q3qnbwy4xn1hw4i4fyw4j5nkrqy4ak46mxwqgip9ym20d5";
8+ url = "mirror://sourceforge/sabnzbdplus/SABnzbd-${version}-src.tar.gz";
9+ sha256 = "0hl7mwgyvm4d68346s7vlv0qlibfh2p2idpyzpjfvk8f79hs9cr0";
910 };
1011
11− buildInputs = [makeWrapper python sqlite3 cheetahTemplate];
12− inherit stdenv python cheetahTemplate par2cmdline unzip unrar;
13− inherit (pythonPackages) sqlite3;
12+ pythonPath = with pythonPackages; [ pyopenssl sqlite3 cheetah ];
13+ buildInputs = with pythonPackages; [wrapPython];
14+ inherit python par2cmdline unzip unrar;
1415
1516 builder = ./builder.sh;
16−
17− meta = {
17+
18+ meta = with stdenv.lib; {
1819 description = "Usenet NZB downloader, par2 repairer and auto extracting server";
20+ homepage = http://sabnzbd.org;
21+ license = licenses.gpl2Plus;
22+ platforms = platforms.linux;
1923 };
2024}