2017-03-21 17:58:10 +03:00
|
|
|
{ stdenv, fetchurl, fetchpatch, python2Packages, mygpoclient, intltool
|
2017-02-26 23:57:07 +03:00
|
|
|
, ipodSupport ? false, libgpod
|
2016-02-15 16:16:01 +03:00
|
|
|
, gnome3
|
|
|
|
}:
|
2014-07-20 23:12:05 +04:00
|
|
|
|
2016-11-25 11:28:47 +03:00
|
|
|
python2Packages.buildPythonApplication rec {
|
2016-02-15 16:16:01 +03:00
|
|
|
name = "gpodder-${version}";
|
2014-07-20 23:12:05 +04:00
|
|
|
|
2017-03-21 17:58:10 +03:00
|
|
|
version = "3.9.3";
|
2014-07-20 23:12:05 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://gpodder.org/src/${name}.tar.gz";
|
2017-03-21 17:58:10 +03:00
|
|
|
sha256 = "1s83m90dic2zphwwv6wrvqx950y12v5sakm7q5nj5bnh5k9l2hgl";
|
2014-07-20 23:12:05 +04:00
|
|
|
};
|
|
|
|
|
2017-03-21 17:58:10 +03:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
sha256 = "1xkl1wnp46546jrzsnb9p0yj23776byg3nvsqwbblhqbsfipl48w";
|
|
|
|
name = "Fix-soundcloud-feeds.patch";
|
|
|
|
url = "https://github.com/gpodder/gpodder/commit/e7f34ad090cd276d75c0cd8d92ed97243d75db38.patch";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
sha256 = "1jlldbinlxis1pi9p2lyczgbcv8nmdj66fxll6ph0klln0w8gvg4";
|
|
|
|
name = "use-https-urls-for-soundcloud.patch";
|
|
|
|
url = "https://github.com/gpodder/gpodder/commit/ef915dd3b6828174bf4f6f0911da410d9aca1b67.patch";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
sha256 = "1l37ihzk7gfqcl5nnphv0sv80psm6fsg4qkxn6abc6v476axyj9b";
|
|
|
|
name = "updates-soundcloud-support-to-recognize-https";
|
|
|
|
url = "https://github.com/gpodder/gpodder/commit/5c1507671d93096ad0118f908c20dd1f182a72e0.patch";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2016-02-15 16:16:01 +03: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 19:49:16 +04:00
|
|
|
buildInputs = [
|
2016-11-25 11:28:47 +03:00
|
|
|
intltool python2Packages.coverage python2Packages.minimock
|
2015-05-19 14:37:44 +03:00
|
|
|
gnome3.gnome_themes_standard gnome3.defaultIconTheme
|
2014-11-17 23:00:03 +03:00
|
|
|
gnome3.gsettings_desktop_schemas
|
2014-08-07 19:49:16 +04:00
|
|
|
];
|
2014-07-20 23:12:05 +04:00
|
|
|
|
2016-11-25 11:28:47 +03:00
|
|
|
propagatedBuildInputs = with python2Packages; [
|
2017-03-21 17:58:10 +03:00
|
|
|
feedparser dbus-python mygpoclient pygtk eyeD3 podcastparser html5lib
|
2016-02-15 16:16:01 +03:00
|
|
|
] ++ stdenv.lib.optional ipodSupport libgpod;
|
2014-07-20 23:12:05 +04:00
|
|
|
|
2016-02-15 16:16:01 +03:00
|
|
|
checkPhase = ''
|
|
|
|
LC_ALL=C python -m gpodder.unittests
|
2014-08-07 19:49:16 +04:00
|
|
|
'';
|
|
|
|
|
2017-03-21 19:12:07 +03:00
|
|
|
meta = with stdenv.lib; {
|
2014-07-21 23:32:13 +04:00
|
|
|
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/";
|
2017-03-21 19:12:07 +03:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
maintainers = with maintainers; [ skeidel mic92 ];
|
2014-07-21 23:32:13 +04:00
|
|
|
};
|
2014-07-20 23:12:05 +04:00
|
|
|
}
|