2014-07-20 20:12:05 +01:00
|
|
|
{ pkgs, stdenv, fetchurl, python, buildPythonPackage, pythonPackages, mygpoclient, intltool,
|
2015-05-19 12:37:44 +01:00
|
|
|
ipodSupport ? true, libgpod, gnome3 }:
|
2014-07-20 20:12:05 +01:00
|
|
|
|
|
|
|
with pkgs.lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (pythonPackages) coverage feedparser minimock sqlite3 dbus pygtk eyeD3;
|
|
|
|
|
|
|
|
in buildPythonPackage rec {
|
2015-08-09 11:05:25 +01:00
|
|
|
name = "gpodder-3.8.4";
|
2014-07-20 20:12:05 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://gpodder.org/src/${name}.tar.gz";
|
2015-08-09 11:05:25 +01:00
|
|
|
sha256 = "0cjpk92qjsws7ddbnq0r2h7vm5019zlpafgbxwsgllmjzkknj6pn";
|
2014-07-20 20:12:05 +01:00
|
|
|
};
|
|
|
|
|
2014-08-07 16:49:16 +01:00
|
|
|
buildInputs = [
|
2015-11-20 18:58:38 +00:00
|
|
|
coverage minimock sqlite3 mygpoclient intltool
|
2015-05-19 12:37:44 +01:00
|
|
|
gnome3.gnome_themes_standard gnome3.defaultIconTheme
|
2014-11-17 20:00:03 +00:00
|
|
|
gnome3.gsettings_desktop_schemas
|
2014-08-07 16:49:16 +01:00
|
|
|
];
|
2014-07-20 20:12:05 +01:00
|
|
|
|
2014-11-17 20:00:03 +00:00
|
|
|
propagatedUserEnvPkgs = [ gnome3.gnome_themes_standard ];
|
|
|
|
|
|
|
|
pythonPath = [ feedparser dbus mygpoclient sqlite3 pygtk eyeD3 ]
|
2014-07-20 20:12:05 +01:00
|
|
|
++ stdenv.lib.optional ipodSupport libgpod;
|
|
|
|
|
|
|
|
postPatch = "sed -ie 's/PYTHONPATH=src/PYTHONPATH=\$(PYTHONPATH):src/' makefile";
|
|
|
|
|
2014-07-21 16:58:27 +01:00
|
|
|
preFixup = ''
|
2014-07-20 20:12:05 +01:00
|
|
|
wrapProgram $out/bin/gpodder \
|
2014-08-07 16:49:16 +01:00
|
|
|
--prefix XDG_DATA_DIRS : "${gnome3.gnome_themes_standard}/share:$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH"
|
|
|
|
'';
|
|
|
|
|
|
|
|
# The `wrapPythonPrograms` script in the postFixup phase breaks gpodder. The
|
|
|
|
# easiest way to fix this is to call wrapPythonPrograms and then to clean up
|
|
|
|
# the wrapped file.
|
|
|
|
postFixup = ''
|
|
|
|
wrapPythonPrograms
|
|
|
|
|
|
|
|
sed -i "$out/bin/..gpodder-wrapped-wrapped" -e '{
|
|
|
|
/import sys; sys.argv/d
|
|
|
|
}'
|
2014-07-20 20:12:05 +01:00
|
|
|
'';
|
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/";
|
2014-11-06 00:44:33 +00:00
|
|
|
license = stdenv.lib.licenses.gpl3;
|
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
|
|
|
}
|