2017-12-31 01:38:39 +00:00
|
|
|
{ stdenv, fetchFromGitHub, python3, python3Packages, intltool
|
|
|
|
, glibcLocales, gnome3, gtk3, wrapGAppsHook
|
2018-01-18 13:35:02 +00:00
|
|
|
, ipodSupport ? false, libgpod, gobjectIntrospection
|
2016-02-15 13:16:01 +00:00
|
|
|
}:
|
2014-07-20 19:12:05 +00:00
|
|
|
|
2017-12-31 01:38:39 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2018-06-23 13:27:58 +00:00
|
|
|
pname = "gpodder";
|
2018-06-24 08:23:49 +00:00
|
|
|
version = "3.10.3";
|
2017-12-31 01:38:39 +00:00
|
|
|
format = "other";
|
2014-07-20 19:12:05 +00:00
|
|
|
|
2017-12-31 01:38:39 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gpodder";
|
|
|
|
repo = "gpodder";
|
|
|
|
rev = version;
|
2018-06-24 08:23:49 +00:00
|
|
|
sha256 = "0j0amjq1wvr5p10vckg900a8xfnxw6z028qw72ayh58216m5jb5l";
|
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
|
|
|
|
'';
|
|
|
|
|
2017-12-31 01:38:39 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
intltool
|
|
|
|
wrapGAppsHook
|
|
|
|
glibcLocales
|
|
|
|
];
|
|
|
|
|
2018-02-20 11:12:42 +00:00
|
|
|
buildInputs = [
|
|
|
|
python3
|
|
|
|
gobjectIntrospection
|
|
|
|
gnome3.defaultIconTheme
|
|
|
|
];
|
2014-07-20 19:12:05 +00:00
|
|
|
|
2017-12-31 01:38:39 +00:00
|
|
|
checkInputs = with python3Packages; [
|
|
|
|
coverage minimock
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
feedparser
|
|
|
|
dbus-python
|
|
|
|
mygpoclient
|
|
|
|
pygobject3
|
|
|
|
eyeD3
|
|
|
|
podcastparser
|
|
|
|
html5lib
|
|
|
|
gtk3
|
2016-02-15 13:16:01 +00:00
|
|
|
] ++ stdenv.lib.optional ipodSupport libgpod;
|
2014-07-20 19:12:05 +00:00
|
|
|
|
2017-12-31 01:38:39 +00:00
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
"share/applications/gpodder-url-handler.desktop"
|
|
|
|
"share/applications/gpodder.desktop"
|
|
|
|
"share/dbus-1/services/org.gpodder.service"
|
|
|
|
];
|
|
|
|
|
2017-10-25 18:54:19 +00:00
|
|
|
preBuild = ''
|
2017-12-31 01:38:39 +00:00
|
|
|
export LC_ALL="en_US.UTF-8"
|
2017-10-25 18:54:19 +00:00
|
|
|
'';
|
|
|
|
|
2017-12-31 01:38:39 +00:00
|
|
|
installCheckPhase = ''
|
|
|
|
LC_ALL=C PYTHONPATH=./src:$PYTHONPATH python3 -m gpodder.unittests
|
2014-08-07 15:49:16 +00:00
|
|
|
'';
|
|
|
|
|
2017-03-21 16:12:07 +00:00
|
|
|
meta = with stdenv.lib; {
|
2014-07-21 19:32:13 +00: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.
|
|
|
|
'';
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = http://gpodder.org/;
|
2017-03-21 16:12:07 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
maintainers = with maintainers; [ skeidel mic92 ];
|
2014-07-21 19:32:13 +00:00
|
|
|
};
|
2014-07-20 19:12:05 +00:00
|
|
|
}
|