2021-01-25 09:26:54 +01:00
|
|
|
{ lib, fetchFromGitHub, python3, python3Packages, intltool
|
2021-05-07 23:18:14 +02:00
|
|
|
, glibcLocales, gnome, gtk3, wrapGAppsHook
|
2019-12-12 12:02:24 +01:00
|
|
|
, gobject-introspection
|
2016-02-15 14:16:01 +01:00
|
|
|
}:
|
2014-07-20 21:12:05 +02:00
|
|
|
|
2017-12-31 02:38:39 +01:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2018-06-23 15:27:58 +02:00
|
|
|
pname = "gpodder";
|
2020-12-25 22:56:02 +01:00
|
|
|
version = "3.10.17";
|
2017-12-31 02:38:39 +01:00
|
|
|
format = "other";
|
2014-07-20 21:12:05 +02:00
|
|
|
|
2017-12-31 02:38:39 +01:00
|
|
|
src = fetchFromGitHub {
|
2019-02-03 17:34:41 +01:00
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
2017-12-31 02:38:39 +01:00
|
|
|
rev = version;
|
2020-12-25 22:56:02 +01:00
|
|
|
sha256 = "0wrk8d4q6ricbcjzlhk10vrk1qg9hi323kgyyd0c8nmh7a82h8pd";
|
2014-07-20 21:12:05 +02:00
|
|
|
};
|
|
|
|
|
2019-04-14 13:51:15 +02:00
|
|
|
patches = [
|
|
|
|
./disable-autoupdate.patch
|
|
|
|
];
|
|
|
|
|
2021-01-15 14:21:58 +01:00
|
|
|
postPatch = with lib; ''
|
2016-02-15 14:16:01 +01:00
|
|
|
sed -i -re 's,^( *gpodder_dir *= *).*,\1"'"$out"'",' bin/gpodder
|
|
|
|
'';
|
|
|
|
|
2017-12-31 02:38:39 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
intltool
|
|
|
|
wrapGAppsHook
|
|
|
|
glibcLocales
|
|
|
|
];
|
|
|
|
|
2021-07-28 06:31:07 +02:00
|
|
|
# as of 2021-07, the gobject-introspection setup hook does not
|
|
|
|
# work with `strictDeps` enabled, thus for proper `wrapGAppsHook`
|
|
|
|
# it needs to be disabled explicitly. https://github.com/NixOS/nixpkgs/issues/56943
|
|
|
|
strictDeps = false;
|
|
|
|
|
2018-02-20 12:12:42 +01:00
|
|
|
buildInputs = [
|
|
|
|
python3
|
2021-07-28 06:31:07 +02:00
|
|
|
gtk3
|
2018-12-02 12:41:15 +01:00
|
|
|
gobject-introspection
|
2021-05-07 23:18:14 +02:00
|
|
|
gnome.adwaita-icon-theme
|
2018-02-20 12:12:42 +01:00
|
|
|
];
|
2014-07-20 21:12:05 +02:00
|
|
|
|
2017-12-31 02:38:39 +01:00
|
|
|
checkInputs = with python3Packages; [
|
|
|
|
coverage minimock
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
feedparser
|
|
|
|
dbus-python
|
|
|
|
mygpoclient
|
|
|
|
pygobject3
|
|
|
|
eyeD3
|
|
|
|
podcastparser
|
|
|
|
html5lib
|
2019-12-12 12:02:24 +01:00
|
|
|
];
|
2014-07-20 21:12:05 +02:00
|
|
|
|
2017-12-31 02:38:39 +01:00
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
"share/applications/gpodder-url-handler.desktop"
|
|
|
|
"share/applications/gpodder.desktop"
|
|
|
|
"share/dbus-1/services/org.gpodder.service"
|
|
|
|
];
|
|
|
|
|
2017-10-25 20:54:19 +02:00
|
|
|
preBuild = ''
|
2017-12-31 02:38:39 +01:00
|
|
|
export LC_ALL="en_US.UTF-8"
|
2017-10-25 20:54:19 +02:00
|
|
|
'';
|
|
|
|
|
2017-12-31 02:38:39 +01:00
|
|
|
installCheckPhase = ''
|
|
|
|
LC_ALL=C PYTHONPATH=./src:$PYTHONPATH python3 -m gpodder.unittests
|
2014-08-07 17:49:16 +02:00
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2014-07-21 21:32:13 +02: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.
|
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://gpodder.org/";
|
2017-03-21 17:12:07 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
maintainers = with maintainers; [ skeidel mic92 ];
|
2014-07-21 21:32:13 +02:00
|
|
|
};
|
2014-07-20 21:12:05 +02:00
|
|
|
}
|