3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/audio/gpodder/default.nix

82 lines
1.7 KiB
Nix
Raw Normal View History

2017-12-31 01:38:39 +00:00
{ stdenv, fetchFromGitHub, python3, python3Packages, intltool
, glibcLocales, gnome3, gtk3, wrapGAppsHook
, gobject-introspection
}:
2014-07-20 20:12:05 +01:00
2017-12-31 01:38:39 +00:00
python3Packages.buildPythonApplication rec {
pname = "gpodder";
2020-05-03 22:03:15 +01:00
version = "3.10.15";
2017-12-31 01:38:39 +00:00
format = "other";
2014-07-20 20:12:05 +01:00
2017-12-31 01:38:39 +00:00
src = fetchFromGitHub {
2019-02-03 16:34:41 +00:00
owner = pname;
repo = pname;
2017-12-31 01:38:39 +00:00
rev = version;
2020-05-03 22:03:15 +01:00
sha256 = "0ghbanj142n0hgydzfjmnkdgri2kswsjal3mn10c723kih4ir4yr";
2014-07-20 20:12:05 +01:00
};
2019-04-14 12:51:15 +01:00
patches = [
./disable-autoupdate.patch
];
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
];
buildInputs = [
python3
gobject-introspection
2019-02-13 21:47:50 +00:00
gnome3.adwaita-icon-theme
];
2014-07-20 20:12:05 +01: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
];
2014-07-20 20:12:05 +01: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 19:54:19 +01:00
preBuild = ''
2017-12-31 01:38:39 +00:00
export LC_ALL="en_US.UTF-8"
2017-10-25 19:54:19 +01:00
'';
2017-12-31 01:38:39 +00:00
installCheckPhase = ''
LC_ALL=C PYTHONPATH=./src:$PYTHONPATH python3 -m gpodder.unittests
2014-08-07 16:49:16 +01:00
'';
2017-03-21 16:12:07 +00: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 16:12:07 +00:00
license = licenses.gpl3;
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ skeidel mic92 ];
};
2014-07-20 20:12:05 +01:00
}