nixpkgs-suyu/pkgs/applications/audio/quodlibet/default.nix

76 lines
3.4 KiB
Nix
Raw Normal View History

2018-03-30 14:24:43 +02:00
{ stdenv, fetchurl, python3, wrapGAppsHook, gettext, intltool, libsoup, gnome3, gtk3, gdk_pixbuf,
tag ? "", xvfb_run, dbus, glibcLocales, glib, glib-networking, gobjectIntrospection,
2017-09-17 10:00:36 +02:00
gst_all_1, withGstPlugins ? true,
xineBackend ? false, xineLib,
withDbusPython ? false, withPyInotify ? false, withMusicBrainzNgs ? false, withPahoMqtt ? false,
webkitgtk ? null,
keybinder3 ? null, gtksourceview ? null, libmodplug ? null, kakasi ? null, libappindicator-gtk3 ? null }:
let optionals = stdenv.lib.optionals; in
2018-03-30 14:24:43 +02:00
python3.pkgs.buildPythonApplication rec {
pname = "quodlibet${tag}";
quodlibet: 4.0.2 -> 4.1.0 Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/quodlibet/versions. These checks were done: - built on NixOS - Warning: no invocation of /nix/store/3p27i5pd743r3jxcpffgm4646xmcx5x7-quodlibet-4.1.0/bin/exfalso had a zero exit code or showed the expected version - /nix/store/3p27i5pd743r3jxcpffgm4646xmcx5x7-quodlibet-4.1.0/bin/operon passed the binary check. - Warning: no invocation of /nix/store/3p27i5pd743r3jxcpffgm4646xmcx5x7-quodlibet-4.1.0/bin/quodlibet had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/3p27i5pd743r3jxcpffgm4646xmcx5x7-quodlibet-4.1.0/bin/..exfalso-wrapped-wrapped had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/3p27i5pd743r3jxcpffgm4646xmcx5x7-quodlibet-4.1.0/bin/.exfalso-wrapped had a zero exit code or showed the expected version - /nix/store/3p27i5pd743r3jxcpffgm4646xmcx5x7-quodlibet-4.1.0/bin/..operon-wrapped-wrapped passed the binary check. - /nix/store/3p27i5pd743r3jxcpffgm4646xmcx5x7-quodlibet-4.1.0/bin/.operon-wrapped passed the binary check. - Warning: no invocation of /nix/store/3p27i5pd743r3jxcpffgm4646xmcx5x7-quodlibet-4.1.0/bin/..quodlibet-wrapped-wrapped had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/3p27i5pd743r3jxcpffgm4646xmcx5x7-quodlibet-4.1.0/bin/.quodlibet-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 4.1.0 with grep in /nix/store/3p27i5pd743r3jxcpffgm4646xmcx5x7-quodlibet-4.1.0 - directory tree listing: https://gist.github.com/296d4e647e2235036b698f635ea58ee1 - du listing: https://gist.github.com/78b82ba179474dd128d2bd74355001fe
2018-06-06 06:22:05 +02:00
version = "4.1.0";
# XXX, tests fail
2018-03-30 14:24:43 +02:00
# https://github.com/quodlibet/quodlibet/issues/2820
doCheck = false;
2017-09-17 10:00:36 +02:00
src = fetchurl {
url = "https://github.com/quodlibet/quodlibet/releases/download/release-${version}/quodlibet-${version}.tar.gz";
quodlibet: 4.0.2 -> 4.1.0 Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/quodlibet/versions. These checks were done: - built on NixOS - Warning: no invocation of /nix/store/3p27i5pd743r3jxcpffgm4646xmcx5x7-quodlibet-4.1.0/bin/exfalso had a zero exit code or showed the expected version - /nix/store/3p27i5pd743r3jxcpffgm4646xmcx5x7-quodlibet-4.1.0/bin/operon passed the binary check. - Warning: no invocation of /nix/store/3p27i5pd743r3jxcpffgm4646xmcx5x7-quodlibet-4.1.0/bin/quodlibet had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/3p27i5pd743r3jxcpffgm4646xmcx5x7-quodlibet-4.1.0/bin/..exfalso-wrapped-wrapped had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/3p27i5pd743r3jxcpffgm4646xmcx5x7-quodlibet-4.1.0/bin/.exfalso-wrapped had a zero exit code or showed the expected version - /nix/store/3p27i5pd743r3jxcpffgm4646xmcx5x7-quodlibet-4.1.0/bin/..operon-wrapped-wrapped passed the binary check. - /nix/store/3p27i5pd743r3jxcpffgm4646xmcx5x7-quodlibet-4.1.0/bin/.operon-wrapped passed the binary check. - Warning: no invocation of /nix/store/3p27i5pd743r3jxcpffgm4646xmcx5x7-quodlibet-4.1.0/bin/..quodlibet-wrapped-wrapped had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/3p27i5pd743r3jxcpffgm4646xmcx5x7-quodlibet-4.1.0/bin/.quodlibet-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 4.1.0 with grep in /nix/store/3p27i5pd743r3jxcpffgm4646xmcx5x7-quodlibet-4.1.0 - directory tree listing: https://gist.github.com/296d4e647e2235036b698f635ea58ee1 - du listing: https://gist.github.com/78b82ba179474dd128d2bd74355001fe
2018-06-06 06:22:05 +02:00
sha256 = "1vcxx4sz5i4ag74pjpdfw7jkwxfb8jhvn8igcjwd5cccw4gscm2z";
2017-09-17 10:00:36 +02:00
};
2017-09-17 10:00:36 +02:00
nativeBuildInputs = [ wrapGAppsHook gettext intltool ];
2018-03-30 14:24:43 +02:00
checkInputs = with python3.pkgs; [ pytest pytest_xdist pyflakes pycodestyle polib xvfb_run dbus.daemon glibcLocales ];
buildInputs = [ gnome3.defaultIconTheme libsoup glib glib-networking gtk3 webkitgtk gdk_pixbuf keybinder3 gtksourceview libmodplug libappindicator-gtk3 kakasi gobjectIntrospection ]
2017-09-17 10:00:36 +02:00
++ (if xineBackend then [ xineLib ] else with gst_all_1;
[ gstreamer gst-plugins-base ] ++ optionals withGstPlugins [ gst-plugins-good gst-plugins-ugly gst-plugins-bad ]);
2018-03-30 14:24:43 +02:00
propagatedBuildInputs = with python3.pkgs; [ pygobject3 pycairo mutagen gst-python feedparser ]
2017-09-17 10:00:36 +02:00
++ optionals withDbusPython [ dbus-python ]
++ optionals withPyInotify [ pyinotify ]
++ optionals withMusicBrainzNgs [ musicbrainzngs ]
++ optionals stdenv.isDarwin [ pyobjc ]
++ optionals withPahoMqtt [ paho-mqtt ];
2018-03-30 14:24:43 +02:00
LC_ALL = "en_US.UTF-8";
checkPhase = ''
runHook preCheck
checkHomeDir=$(mktemp -d)
mkdir -p $checkHomeDir/.cache/thumbnails/normal # Required by TThumb.test_recreate_broken_cache_file
env XDG_DATA_DIRS="$out/share:${gtk3}/share/gsettings-schemas/${gtk3.name}:$XDG_DATA_DIRS" \
HOME=$checkHomeDir \
xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
py.test
runHook postCheck
'';
preFixup = stdenv.lib.optionalString (kakasi != null) "gappsWrapperArgs+=(--prefix PATH : ${kakasi}/bin)";
2018-03-30 14:24:43 +02:00
meta = with stdenv.lib; {
description = "GTK+-based audio player written in Python, using the Mutagen tagging library";
2018-03-30 14:24:43 +02:00
license = licenses.gpl2Plus;
longDescription = ''
Quod Libet is a GTK+-based audio player written in Python, using
the Mutagen tagging library. It's designed around the idea that
you know how to organize your music better than we do. It lets
you make playlists based on regular expressions (don't worry,
regular searches work too). It lets you display and edit any
tags you want in the file. And it lets you do this for all the
file formats it supports. Quod Libet easily scales to libraries
of thousands (or even tens of thousands) of songs. It also
supports most of the features you expect from a modern media
player, like Unicode support, tag editing, Replay Gain, podcasts
& internet radio, and all major audio formats.
'';
2018-03-30 14:24:43 +02:00
maintainers = with maintainers; [ coroa sauyon ];
homepage = https://quodlibet.readthedocs.io/en/latest/;
};
}