8055c91f9d
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. These checks were done: - built on NixOS - Warning: no invocation of /nix/store/8rqasrwlljygffj6i4nf8v8v75bhc255-gpodder-3.10.3/bin/gpo had a zero exit code or showed the expected version - /nix/store/8rqasrwlljygffj6i4nf8v8v75bhc255-gpodder-3.10.3/bin/gpodder passed the binary check. - Warning: no invocation of /nix/store/8rqasrwlljygffj6i4nf8v8v75bhc255-gpodder-3.10.3/bin/gpodder-migrate2tres had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/8rqasrwlljygffj6i4nf8v8v75bhc255-gpodder-3.10.3/bin/..gpo-wrapped-wrapped had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/8rqasrwlljygffj6i4nf8v8v75bhc255-gpodder-3.10.3/bin/.gpo-wrapped had a zero exit code or showed the expected version - /nix/store/8rqasrwlljygffj6i4nf8v8v75bhc255-gpodder-3.10.3/bin/..gpodder-wrapped-wrapped passed the binary check. - /nix/store/8rqasrwlljygffj6i4nf8v8v75bhc255-gpodder-3.10.3/bin/.gpodder-wrapped passed the binary check. - Warning: no invocation of /nix/store/8rqasrwlljygffj6i4nf8v8v75bhc255-gpodder-3.10.3/bin/..gpodder-migrate2tres-wrapped-wrapped had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/8rqasrwlljygffj6i4nf8v8v75bhc255-gpodder-3.10.3/bin/.gpodder-migrate2tres-wrapped had a zero exit code or showed the expected version - 3 of 9 passed binary check by having a zero exit code. - 0 of 9 passed binary check by having the new version present in output. - found 3.10.3 with grep in /nix/store/8rqasrwlljygffj6i4nf8v8v75bhc255-gpodder-3.10.3 - directory tree listing: https://gist.github.com/40569f5fea3ccd68574abaead2e57c56 - du listing: https://gist.github.com/7491af6e9fa6d0fbe76c75499dba579b
78 lines
1.8 KiB
Nix
78 lines
1.8 KiB
Nix
{ stdenv, fetchFromGitHub, python3, python3Packages, intltool
|
|
, glibcLocales, gnome3, gtk3, wrapGAppsHook
|
|
, ipodSupport ? false, libgpod, gobjectIntrospection
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
name = "gpodder-${version}";
|
|
version = "3.10.3";
|
|
|
|
format = "other";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gpodder";
|
|
repo = "gpodder";
|
|
rev = version;
|
|
sha256 = "0j0amjq1wvr5p10vckg900a8xfnxw6z028qw72ayh58216m5jb5l";
|
|
};
|
|
|
|
postPatch = with stdenv.lib; ''
|
|
sed -i -re 's,^( *gpodder_dir *= *).*,\1"'"$out"'",' bin/gpodder
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
intltool
|
|
wrapGAppsHook
|
|
glibcLocales
|
|
];
|
|
|
|
buildInputs = [
|
|
python3
|
|
gobjectIntrospection
|
|
gnome3.defaultIconTheme
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|