nixpkgs/pkgs/applications/audio/gpodder/default.nix

78 lines
1.8 KiB
Nix
Raw Normal View History

2017-12-31 04:38:39 +03:00
{ stdenv, fetchFromGitHub, python3, python3Packages, intltool
, glibcLocales, gnome3, gtk3, wrapGAppsHook
, ipodSupport ? false, libgpod, gobjectIntrospection
}:
2014-07-20 23:12:05 +04:00
2017-12-31 04:38:39 +03:00
python3Packages.buildPythonApplication rec {
pname = "gpodder";
version = "3.10.5";
2017-12-31 04:38:39 +03:00
format = "other";
2014-07-20 23:12:05 +04:00
2017-12-31 04:38:39 +03:00
src = fetchFromGitHub {
owner = "gpodder";
repo = "gpodder";
rev = version;
sha256 = "00lvma40d62h4haybabh15x1y7rnmd84whbjgjv773igwagkn9vw";
2014-07-20 23:12:05 +04:00
};
postPatch = with stdenv.lib; ''
sed -i -re 's,^( *gpodder_dir *= *).*,\1"'"$out"'",' bin/gpodder
'';
2017-12-31 04:38:39 +03:00
nativeBuildInputs = [
intltool
wrapGAppsHook
glibcLocales
];
buildInputs = [
python3
gobjectIntrospection
gnome3.defaultIconTheme
];
2014-07-20 23:12:05 +04:00
2017-12-31 04:38:39 +03:00
checkInputs = with python3Packages; [
coverage minimock
];
doCheck = true;
propagatedBuildInputs = with python3Packages; [
feedparser
dbus-python
mygpoclient
pygobject3
eyeD3
podcastparser
html5lib
gtk3
] ++ stdenv.lib.optional ipodSupport libgpod;
2014-07-20 23:12:05 +04:00
2017-12-31 04:38:39 +03:00
makeFlags = [
"PREFIX=$(out)"
"share/applications/gpodder-url-handler.desktop"
"share/applications/gpodder.desktop"
"share/dbus-1/services/org.gpodder.service"
];
2017-10-25 21:54:19 +03:00
preBuild = ''
2017-12-31 04:38:39 +03:00
export LC_ALL="en_US.UTF-8"
2017-10-25 21:54:19 +03:00
'';
2017-12-31 04:38:39 +03:00
installCheckPhase = ''
LC_ALL=C PYTHONPATH=./src:$PYTHONPATH python3 -m gpodder.unittests
2014-08-07 19:49:16 +04:00
'';
2017-03-21 19:12:07 +03:00
meta = with stdenv.lib; {
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-20 23:12:05 +04:00
}