nixpkgs/pkgs/applications/audio/gpodder/default.nix

79 lines
1.8 KiB
Nix
Raw Normal View History

2017-12-31 02:38:39 +01:00
{ stdenv, fetchFromGitHub, python3, python3Packages, intltool
, glibcLocales, gnome3, gtk3, wrapGAppsHook
, ipodSupport ? false, libgpod, gobjectIntrospection
}:
2014-07-20 21:12:05 +02:00
2017-12-31 02:38:39 +01:00
python3Packages.buildPythonApplication rec {
name = "gpodder-${version}";
gpodder: 3.10.1 -> 3.10.2 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/d43pzkl3230xay7l9wh65whsmsf9lwxa-gpodder-3.10.2/bin/gpo had a zero exit code or showed the expected version - /nix/store/d43pzkl3230xay7l9wh65whsmsf9lwxa-gpodder-3.10.2/bin/gpodder passed the binary check. - Warning: no invocation of /nix/store/d43pzkl3230xay7l9wh65whsmsf9lwxa-gpodder-3.10.2/bin/gpodder-migrate2tres had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/d43pzkl3230xay7l9wh65whsmsf9lwxa-gpodder-3.10.2/bin/..gpo-wrapped-wrapped had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/d43pzkl3230xay7l9wh65whsmsf9lwxa-gpodder-3.10.2/bin/.gpo-wrapped had a zero exit code or showed the expected version - /nix/store/d43pzkl3230xay7l9wh65whsmsf9lwxa-gpodder-3.10.2/bin/..gpodder-wrapped-wrapped passed the binary check. - /nix/store/d43pzkl3230xay7l9wh65whsmsf9lwxa-gpodder-3.10.2/bin/.gpodder-wrapped passed the binary check. - Warning: no invocation of /nix/store/d43pzkl3230xay7l9wh65whsmsf9lwxa-gpodder-3.10.2/bin/..gpodder-migrate2tres-wrapped-wrapped had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/d43pzkl3230xay7l9wh65whsmsf9lwxa-gpodder-3.10.2/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.2 with grep in /nix/store/d43pzkl3230xay7l9wh65whsmsf9lwxa-gpodder-3.10.2 - directory tree listing: https://gist.github.com/cca3f358e73f8f49b3d0dcd3e5549728 - du listing: https://gist.github.com/54e8debaadfab87d705cbf72656b4f35
2018-06-14 17:08:25 +02:00
version = "3.10.2";
2014-07-20 21:12:05 +02:00
2017-12-31 02:38:39 +01:00
format = "other";
2014-07-20 21:12:05 +02:00
2017-12-31 02:38:39 +01:00
src = fetchFromGitHub {
owner = "gpodder";
repo = "gpodder";
rev = version;
gpodder: 3.10.1 -> 3.10.2 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/d43pzkl3230xay7l9wh65whsmsf9lwxa-gpodder-3.10.2/bin/gpo had a zero exit code or showed the expected version - /nix/store/d43pzkl3230xay7l9wh65whsmsf9lwxa-gpodder-3.10.2/bin/gpodder passed the binary check. - Warning: no invocation of /nix/store/d43pzkl3230xay7l9wh65whsmsf9lwxa-gpodder-3.10.2/bin/gpodder-migrate2tres had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/d43pzkl3230xay7l9wh65whsmsf9lwxa-gpodder-3.10.2/bin/..gpo-wrapped-wrapped had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/d43pzkl3230xay7l9wh65whsmsf9lwxa-gpodder-3.10.2/bin/.gpo-wrapped had a zero exit code or showed the expected version - /nix/store/d43pzkl3230xay7l9wh65whsmsf9lwxa-gpodder-3.10.2/bin/..gpodder-wrapped-wrapped passed the binary check. - /nix/store/d43pzkl3230xay7l9wh65whsmsf9lwxa-gpodder-3.10.2/bin/.gpodder-wrapped passed the binary check. - Warning: no invocation of /nix/store/d43pzkl3230xay7l9wh65whsmsf9lwxa-gpodder-3.10.2/bin/..gpodder-migrate2tres-wrapped-wrapped had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/d43pzkl3230xay7l9wh65whsmsf9lwxa-gpodder-3.10.2/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.2 with grep in /nix/store/d43pzkl3230xay7l9wh65whsmsf9lwxa-gpodder-3.10.2 - directory tree listing: https://gist.github.com/cca3f358e73f8f49b3d0dcd3e5549728 - du listing: https://gist.github.com/54e8debaadfab87d705cbf72656b4f35
2018-06-14 17:08:25 +02:00
sha256 = "0nbhyh44cympslcf4miwc2n1gccm5ghjf9slg0r8xnpvg921jv04";
2014-07-20 21:12:05 +02:00
};
postPatch = with stdenv.lib; ''
sed -i -re 's,^( *gpodder_dir *= *).*,\1"'"$out"'",' bin/gpodder
'';
2017-12-31 02:38:39 +01:00
nativeBuildInputs = [
intltool
wrapGAppsHook
glibcLocales
];
buildInputs = [
python3
gobjectIntrospection
gnome3.defaultIconTheme
];
2014-07-20 21:12:05 +02:00
2017-12-31 02:38:39 +01:00
checkInputs = with python3Packages; [
coverage minimock
];
doCheck = true;
propagatedBuildInputs = with python3Packages; [
feedparser
dbus-python
mygpoclient
pygobject3
eyeD3
podcastparser
html5lib
gtk3
] ++ stdenv.lib.optional ipodSupport libgpod;
2014-07-20 21:12:05 +02:00
2017-12-31 02:38:39 +01:00
makeFlags = [
"PREFIX=$(out)"
"share/applications/gpodder-url-handler.desktop"
"share/applications/gpodder.desktop"
"share/dbus-1/services/org.gpodder.service"
];
2017-10-25 20:54:19 +02:00
preBuild = ''
2017-12-31 02:38:39 +01:00
export LC_ALL="en_US.UTF-8"
2017-10-25 20:54:19 +02:00
'';
2017-12-31 02:38:39 +01:00
installCheckPhase = ''
LC_ALL=C PYTHONPATH=./src:$PYTHONPATH python3 -m gpodder.unittests
2014-08-07 17:49:16 +02:00
'';
2017-03-21 17:12:07 +01:00
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/;
2017-03-21 17:12:07 +01:00
license = licenses.gpl3;
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ skeidel mic92 ];
};
2014-07-20 21:12:05 +02:00
}