2014-07-20 20:12:05 +01:00
|
|
|
{ pkgs, stdenv, fetchurl, python, buildPythonPackage, pythonPackages, mygpoclient, intltool,
|
|
|
|
ipodSupport ? true, libgpod, gpodderHome ? "", gpodderDownloadDir ? "" }:
|
|
|
|
|
|
|
|
with pkgs.lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (pythonPackages) coverage feedparser minimock sqlite3 dbus pygtk eyeD3;
|
|
|
|
|
|
|
|
in buildPythonPackage rec {
|
|
|
|
name = "gpodder-3.7.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://gpodder.org/src/${name}.tar.gz";
|
|
|
|
sha256 = "fa90ef4bdd3fd9eef95404f7f43f70912ae3ab4f8d24078484a2f3e11b14dc47";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ coverage feedparser minimock sqlite3 mygpoclient intltool ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ feedparser dbus mygpoclient sqlite3 pygtk eyeD3 ]
|
|
|
|
++ stdenv.lib.optional ipodSupport libgpod;
|
|
|
|
|
|
|
|
postPatch = "sed -ie 's/PYTHONPATH=src/PYTHONPATH=\$(PYTHONPATH):src/' makefile";
|
|
|
|
|
|
|
|
checkPhase = "make unittest";
|
|
|
|
|
2014-07-21 16:58:27 +01:00
|
|
|
preFixup = ''
|
2014-07-20 20:12:05 +01:00
|
|
|
wrapProgram $out/bin/gpodder \
|
|
|
|
${optionalString (gpodderHome != "") "--set GPODDER_HOME ${gpodderHome}"} \
|
|
|
|
${optionalString (gpodderDownloadDir != "") "--set GPODDER_DOWNLOAD_DIR ${gpodderDownloadDir}"}
|
|
|
|
'';
|
2014-07-21 17:05:08 +01:00
|
|
|
|
|
|
|
installPhase = "DESTDIR=/ PREFIX=$out make install";
|
|
|
|
|
2014-07-21 20:32:13 +01:00
|
|
|
meta = {
|
|
|
|
description = "A podcatcher written in python";
|
|
|
|
longDescription = ''
|
|
|
|
gPodder downloads and manages free audio and video content (podcasts)
|
|
|
|
for you. Listen directly on your computer or on your mobile devices.
|
|
|
|
'';
|
|
|
|
homepage = "http://gpodder.org/";
|
|
|
|
license = "GPLv3";
|
2014-07-22 08:39:06 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
|
2014-07-21 20:32:13 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.skeidel ];
|
|
|
|
};
|
2014-07-20 20:12:05 +01:00
|
|
|
}
|