eb04659fc2
This was achieved using the following command: sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b') And then manually reverted the following changes: - alias in top-level.nix - function name in wrap-gapps-hook.sh - comment in postFixup of at-spi2-core - comment in gtk4 - comment in preFixup of 1password-gui/linux.nix - comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix - comment in postFixup of telegram-desktop - comment in postFixup of fwupd - buildCommand of mongodb-compass - postFixup of xflux-gui - comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config - description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
100 lines
2.1 KiB
Nix
100 lines
2.1 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, gitUpdater
|
|
, glibcLocales
|
|
, gnome
|
|
, gobject-introspection
|
|
, gtk3
|
|
, intltool
|
|
, python3
|
|
, python3Packages
|
|
, wrapGAppsHook3
|
|
, xdg-utils
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "gpodder";
|
|
version = "3.11.4";
|
|
format = "other";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "kEhyV1o8VSQW9qMx6m5avj6LnJuVTONDd6msRuc8t/4=";
|
|
};
|
|
|
|
patches = [
|
|
./disable-autoupdate.patch
|
|
];
|
|
|
|
postPatch = with lib; ''
|
|
sed -i -re 's,^( *gpodder_dir *= *).*,\1"'"$out"'",' bin/gpodder
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
intltool
|
|
wrapGAppsHook3
|
|
glibcLocales
|
|
gobject-introspection
|
|
];
|
|
|
|
buildInputs = [
|
|
python3
|
|
gtk3
|
|
gnome.adwaita-icon-theme
|
|
];
|
|
|
|
nativeCheckInputs = with python3Packages; [
|
|
minimock
|
|
pytest
|
|
pytest-httpserver
|
|
pytest-cov
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
feedparser
|
|
dbus-python
|
|
mygpoclient
|
|
requests
|
|
pygobject3
|
|
eyed3
|
|
podcastparser
|
|
html5lib
|
|
mutagen
|
|
];
|
|
|
|
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 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
|
|
'';
|
|
|
|
makeWrapperArgs = [ "--suffix PATH : ${lib.makeBinPath [ xdg-utils ]}" ];
|
|
|
|
passthru.updateScript = gitUpdater {};
|
|
|
|
meta = with 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; [ mic92 ];
|
|
};
|
|
}
|