2016-11-25 08:28:47 +00:00
|
|
|
{ stdenv, fetchurl, python2Packages, mygpoclient, intltool
|
2017-02-26 20:57:07 +00:00
|
|
|
, ipodSupport ? false, libgpod
|
2016-02-15 13:16:01 +00:00
|
|
|
, gnome3
|
|
|
|
}:
|
2014-07-20 19:12:05 +00:00
|
|
|
|
2016-11-25 08:28:47 +00:00
|
|
|
python2Packages.buildPythonApplication rec {
|
2016-02-15 13:16:01 +00:00
|
|
|
name = "gpodder-${version}";
|
2014-07-20 19:12:05 +00:00
|
|
|
|
2016-09-04 08:04:28 +00:00
|
|
|
version = "3.9.1";
|
2014-07-20 19:12:05 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://gpodder.org/src/${name}.tar.gz";
|
2016-09-04 08:04:28 +00:00
|
|
|
sha256 = "036p9vnkr3if0k548xhhjmcwdaimy3yd24s3xd8vzlp0wdzkzrhn";
|
2014-07-20 19:12:05 +00:00
|
|
|
};
|
|
|
|
|
2016-02-15 13:16:01 +00:00
|
|
|
postPatch = with stdenv.lib; ''
|
|
|
|
sed -i -re 's,^( *gpodder_dir *= *).*,\1"'"$out"'",' bin/gpodder
|
|
|
|
|
|
|
|
makeWrapperArgs="--suffix XDG_DATA_DIRS : '${concatStringsSep ":" [
|
|
|
|
"${gnome3.gnome_themes_standard}/share"
|
|
|
|
"$XDG_ICON_DIRS"
|
|
|
|
"$GSETTINGS_SCHEMAS_PATH"
|
|
|
|
]}'"
|
|
|
|
'';
|
|
|
|
|
2014-08-07 15:49:16 +00:00
|
|
|
buildInputs = [
|
2016-11-25 08:28:47 +00:00
|
|
|
intltool python2Packages.coverage python2Packages.minimock
|
2015-05-19 11:37:44 +00:00
|
|
|
gnome3.gnome_themes_standard gnome3.defaultIconTheme
|
2014-11-17 20:00:03 +00:00
|
|
|
gnome3.gsettings_desktop_schemas
|
2014-08-07 15:49:16 +00:00
|
|
|
];
|
2014-07-20 19:12:05 +00:00
|
|
|
|
2016-11-25 08:28:47 +00:00
|
|
|
propagatedBuildInputs = with python2Packages; [
|
2016-10-13 20:11:30 +00:00
|
|
|
feedparser dbus-python mygpoclient pygtk eyeD3
|
2016-02-15 13:16:01 +00:00
|
|
|
] ++ stdenv.lib.optional ipodSupport libgpod;
|
2014-07-20 19:12:05 +00:00
|
|
|
|
2016-02-15 13:16:01 +00:00
|
|
|
checkPhase = ''
|
|
|
|
LC_ALL=C python -m gpodder.unittests
|
2014-08-07 15:49:16 +00:00
|
|
|
'';
|
|
|
|
|
2014-07-21 19:32:13 +00: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 07:39:06 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
|
2014-07-21 19:32:13 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.skeidel ];
|
|
|
|
};
|
2014-07-20 19:12:05 +00:00
|
|
|
}
|