2023-06-13 03:49:35 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
2023-06-13 03:50:31 +00:00
|
|
|
, gitUpdater
|
2023-06-13 03:49:35 +00:00
|
|
|
, glibcLocales
|
2024-06-22 12:43:05 +00:00
|
|
|
, adwaita-icon-theme
|
2019-12-12 11:02:24 +00:00
|
|
|
, gobject-introspection
|
2023-06-13 03:49:35 +00:00
|
|
|
, gtk3
|
|
|
|
, intltool
|
2024-07-22 19:29:53 +00:00
|
|
|
, python311Packages
|
2024-04-26 20:24:03 +00:00
|
|
|
, wrapGAppsHook3
|
2023-06-13 03:49:35 +00:00
|
|
|
, xdg-utils
|
2016-02-15 13:16:01 +00:00
|
|
|
}:
|
2014-07-20 19:12:05 +00:00
|
|
|
|
2024-07-22 19:29:53 +00:00
|
|
|
python311Packages.buildPythonApplication rec {
|
2018-06-23 13:27:58 +00:00
|
|
|
pname = "gpodder";
|
2023-10-28 20:07:31 +00:00
|
|
|
version = "3.11.4";
|
2017-12-31 01:38:39 +00:00
|
|
|
format = "other";
|
2014-07-20 19:12:05 +00: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;
|
2023-10-28 20:07:31 +00:00
|
|
|
sha256 = "kEhyV1o8VSQW9qMx6m5avj6LnJuVTONDd6msRuc8t/4=";
|
2014-07-20 19:12:05 +00:00
|
|
|
};
|
|
|
|
|
2019-04-14 11:51:15 +00:00
|
|
|
patches = [
|
|
|
|
./disable-autoupdate.patch
|
|
|
|
];
|
|
|
|
|
2024-08-16 16:50:26 +00:00
|
|
|
postPatch = ''
|
2016-02-15 13:16:01 +00:00
|
|
|
sed -i -re 's,^( *gpodder_dir *= *).*,\1"'"$out"'",' bin/gpodder
|
|
|
|
'';
|
|
|
|
|
2017-12-31 01:38:39 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
intltool
|
2024-04-26 20:24:03 +00:00
|
|
|
wrapGAppsHook3
|
2017-12-31 01:38:39 +00:00
|
|
|
glibcLocales
|
2022-12-29 16:40:14 +00:00
|
|
|
gobject-introspection
|
2017-12-31 01:38:39 +00:00
|
|
|
];
|
|
|
|
|
2018-02-20 11:12:42 +00:00
|
|
|
buildInputs = [
|
2021-07-28 04:31:07 +00:00
|
|
|
gtk3
|
2024-06-22 12:43:05 +00:00
|
|
|
adwaita-icon-theme
|
2018-02-20 11:12:42 +00:00
|
|
|
];
|
2014-07-20 19:12:05 +00:00
|
|
|
|
2024-07-22 19:29:53 +00:00
|
|
|
nativeCheckInputs = with python311Packages; [
|
2022-03-09 14:08:03 +00:00
|
|
|
minimock
|
|
|
|
pytest
|
|
|
|
pytest-httpserver
|
2024-08-23 13:12:04 +00:00
|
|
|
pytest-cov-stub
|
2017-12-31 01:38:39 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2024-07-22 19:29:53 +00:00
|
|
|
propagatedBuildInputs = with python311Packages; [
|
2017-12-31 01:38:39 +00:00
|
|
|
feedparser
|
|
|
|
dbus-python
|
|
|
|
mygpoclient
|
2022-03-09 14:08:03 +00:00
|
|
|
requests
|
2017-12-31 01:38:39 +00:00
|
|
|
pygobject3
|
2024-01-03 20:23:09 +00:00
|
|
|
eyed3
|
2017-12-31 01:38:39 +00:00
|
|
|
podcastparser
|
|
|
|
html5lib
|
2023-09-28 19:43:41 +00:00
|
|
|
mutagen
|
2019-12-12 11:02:24 +00:00
|
|
|
];
|
2014-07-20 19:12:05 +00: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 18:54:19 +00:00
|
|
|
preBuild = ''
|
2017-12-31 01:38:39 +00:00
|
|
|
export LC_ALL="en_US.UTF-8"
|
2017-10-25 18:54:19 +00:00
|
|
|
'';
|
|
|
|
|
2017-12-31 01:38:39 +00:00
|
|
|
installCheckPhase = ''
|
2022-03-09 14:08:03 +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
|
2014-08-07 15:49:16 +00:00
|
|
|
'';
|
|
|
|
|
2023-06-13 03:49:35 +00:00
|
|
|
makeWrapperArgs = [ "--suffix PATH : ${lib.makeBinPath [ xdg-utils ]}" ];
|
|
|
|
|
2023-06-13 03:50:31 +00:00
|
|
|
passthru.updateScript = gitUpdater {};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2024-06-07 07:46:46 +00:00
|
|
|
description = "Podcatcher written in python";
|
2014-07-21 19:32:13 +00:00
|
|
|
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 01:11:51 +00:00
|
|
|
homepage = "http://gpodder.org/";
|
2017-03-21 16:12:07 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2023-10-20 14:25:48 +00:00
|
|
|
maintainers = with maintainers; [ mic92 ];
|
2014-07-21 19:32:13 +00:00
|
|
|
};
|
2014-07-20 19:12:05 +00:00
|
|
|
}
|