anchor.diff:    pytestFlags = stdenv.lib.optionals (xineBackend || !withGstPlugins) [
       "--ignore=tests/plugin/test_replaygain.py"
     ] ++ [
  +    # requires networking
  +    "--ignore=tests/test_browsers_iradio.py"
  +    # the default theme doesn't have the required icons
  +    "--ignore=tests/plugin/test_trayicon.py"
       # upstream does actually not enforce source code linting
       "--ignore=tests/quality"
       # build failure on Arch Linux
  
positive.code: { stdenv, fetchurl, python3, wrapGAppsHook, gettext, libsoup, gnome3, gtk3, gdk-pixbuf,
    tag ? "", xvfb_run, dbus, glibcLocales, glib, glib-networking, gobject-introspection,
    gst_all_1, withGstPlugins ? true,
    xineBackend ? false, xineLib,
    withDbusPython ? false, withPyInotify ? false, withMusicBrainzNgs ? false, withPahoMqtt ? false,
  
negative.code: 
    checkPhase = ''
      runHook preCheck
      # newer gettext spews some warnings which fail the tests
      substituteInPlace tests/test_po.py --replace "strict=True" "strict=False"
      # otherwise tests can't find the app icons; instead of creating index.theme from scratch
      # I re-used the one from hicolor-icon-theme which seems to work
      cp "${hicolor-icon-theme}/share/icons/hicolor/index.theme" quodlibet/images/hicolor
      env XDG_DATA_DIRS="$out/share:${gtk3}/share/gsettings-schemas/${gtk3.name}:$XDG_ICON_DIRS:$XDG_DATA_DIRS" \
        GDK_PIXBUF_MODULE_FILE=${librsvg}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache \
        HOME=$(mktemp -d) \
        xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
          --config-file=${dbus.daemon}/share/dbus-1/session.conf \
  