mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 17:41:12 +00:00
9617a34047
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/gpodder/versions
82 lines
1.8 KiB
Nix
82 lines
1.8 KiB
Nix
{ stdenv, fetchFromGitHub, python3, python3Packages, intltool
|
|
, glibcLocales, gnome3, gtk3, wrapGAppsHook
|
|
, ipodSupport ? false, libgpod, gobject-introspection
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "gpodder";
|
|
version = "3.10.9";
|
|
format = "other";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "1sdmr1sq1d4p492zp9kq3npl7p56yr0pr470z9r6xxcylax5mhfq";
|
|
};
|
|
|
|
patches = [
|
|
./disable-autoupdate.patch
|
|
];
|
|
|
|
postPatch = with stdenv.lib; ''
|
|
sed -i -re 's,^( *gpodder_dir *= *).*,\1"'"$out"'",' bin/gpodder
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
intltool
|
|
wrapGAppsHook
|
|
glibcLocales
|
|
];
|
|
|
|
buildInputs = [
|
|
python3
|
|
gobject-introspection
|
|
gnome3.adwaita-icon-theme
|
|
];
|
|
|
|
checkInputs = with python3Packages; [
|
|
coverage minimock
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
feedparser
|
|
dbus-python
|
|
mygpoclient
|
|
pygobject3
|
|
eyeD3
|
|
podcastparser
|
|
html5lib
|
|
gtk3
|
|
] ++ stdenv.lib.optional ipodSupport libgpod;
|
|
|
|
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 python3 -m gpodder.unittests
|
|
'';
|
|
|
|
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/;
|
|
license = licenses.gpl3;
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
maintainers = with maintainers; [ skeidel mic92 ];
|
|
};
|
|
}
|