2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gitUpdater
|
|
|
|
, glibcLocales
|
|
|
|
, gnome
|
2020-04-24 23:36:52 +00:00
|
|
|
, gobject-introspection
|
2023-07-15 17:15:38 +00:00
|
|
|
, gtk3
|
|
|
|
, intltool
|
|
|
|
, python3
|
|
|
|
, python3Packages
|
|
|
|
, wrapGAppsHook
|
|
|
|
, xdg-utils
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "gpodder";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "3.11.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
format = "other";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-11-16 04:20:00 +00:00
|
|
|
sha256 = "kEhyV1o8VSQW9qMx6m5avj6LnJuVTONDd6msRuc8t/4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./disable-autoupdate.patch
|
|
|
|
];
|
|
|
|
|
2021-01-17 00:15:33 +00:00
|
|
|
postPatch = with lib; ''
|
2020-04-24 23:36:52 +00:00
|
|
|
sed -i -re 's,^( *gpodder_dir *= *).*,\1"'"$out"'",' bin/gpodder
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
intltool
|
|
|
|
wrapGAppsHook
|
|
|
|
glibcLocales
|
2023-03-15 16:39:30 +00:00
|
|
|
gobject-introspection
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
python3
|
2021-08-05 21:33:18 +00:00
|
|
|
gtk3
|
2021-05-20 23:08:51 +00:00
|
|
|
gnome.adwaita-icon-theme
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = with python3Packages; [
|
2022-03-10 19:12:11 +00:00
|
|
|
minimock
|
|
|
|
pytest
|
|
|
|
pytest-httpserver
|
|
|
|
pytest-cov
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
feedparser
|
|
|
|
dbus-python
|
|
|
|
mygpoclient
|
2022-03-10 19:12:11 +00:00
|
|
|
requests
|
2020-04-24 23:36:52 +00:00
|
|
|
pygobject3
|
2024-01-13 08:15:51 +00:00
|
|
|
eyed3
|
2020-04-24 23:36:52 +00:00
|
|
|
podcastparser
|
|
|
|
html5lib
|
2023-10-09 19:29:22 +00:00
|
|
|
mutagen
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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 = ''
|
2022-03-10 19:12:11 +00:00
|
|
|
LC_ALL=C PYTHONPATH=src/:$PYTHONPATH pytest --ignore=tests --ignore=src/gpodder/utilwin32ctypes.py --doctest-modules src/gpodder/util.py src/gpodder/jsonconfig.py
|
|
|
|
LC_ALL=C PYTHONPATH=src/:$PYTHONPATH pytest tests --ignore=src/gpodder/utilwin32ctypes.py --ignore=src/mygpoclient --cov=gpodder
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
makeWrapperArgs = [ "--suffix PATH : ${lib.makeBinPath [ xdg-utils ]}" ];
|
|
|
|
|
|
|
|
passthru.updateScript = gitUpdater {};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +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.
|
|
|
|
'';
|
|
|
|
homepage = "http://gpodder.org/";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2023-11-16 04:20:00 +00:00
|
|
|
maintainers = with maintainers; [ mic92 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|