nixpkgs/pkgs/applications/audio/gpodder/default.nix
Jörg Thalheim 4d1e72cfbb gpodder: 3.10.0 -> 3.10.1
also add defaultIconTheme back
2018-02-20 11:14:30 +00:00

79 lines
1.8 KiB
Nix

{ stdenv, fetchFromGitHub, python3, python3Packages, intltool
, glibcLocales, gnome3, gtk3, wrapGAppsHook
, ipodSupport ? false, libgpod, gobjectIntrospection
}:
python3Packages.buildPythonApplication rec {
name = "gpodder-${version}";
version = "3.10.1";
format = "other";
src = fetchFromGitHub {
owner = "gpodder";
repo = "gpodder";
rev = version;
sha256 = "1cqhm5h0kkdb2m691dbj8i3bixl7bw0iww2pl6k1jkz8mgafyd9d";
};
postPatch = with stdenv.lib; ''
sed -i -re 's,^( *gpodder_dir *= *).*,\1"'"$out"'",' bin/gpodder
'';
nativeBuildInputs = [
intltool
wrapGAppsHook
glibcLocales
];
buildInputs = [
python3
gobjectIntrospection
gnome3.defaultIconTheme
];
checkInputs = with python3Packages; [
coverage minimock
];
doCheck = true;
propagatedBuildInputs = with python3Packages; [
feedparser
dbus-python
mygpoclient
pygobject3
eyeD3
podcastparser
html5lib
gtk3
] ++ stdenv.lib.optional ipodSupport libgpod;
makeFlags = [
"PREFIX=$(out)"
"share/applications/gpodder-url-handler.desktop"
"share/applications/gpodder.desktop"
"share/dbus-1/services/org.gpodder.service"
];
preBuild = ''
export LC_ALL="en_US.UTF-8"
'';
installCheckPhase = ''
LC_ALL=C PYTHONPATH=./src:$PYTHONPATH python3 -m gpodder.unittests
'';
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/;
license = licenses.gpl3;
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ skeidel mic92 ];
};
}