Unverified Commit 22c1cb38 authored by Stefan Frijters's avatar Stefan Frijters
Browse files

quodlibet: fix build for structuredAttrs

parent f08748ce
Loading
Loading
Loading
Loading
+26 −24
Original line number Diff line number Diff line
@@ -140,6 +140,15 @@ python3.pkgs.buildPythonApplication rec {
    pytest-xdist
  ]);

  env.LC_ALL = "en_US.UTF-8";

  preCheck = ''
    export GDK_PIXBUF_MODULE_FILE=${librsvg}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
    export XDG_DATA_DIRS="$out/share:${gtk3}/share/gsettings-schemas/${gtk3.name}:$XDG_ICON_DIRS:$XDG_DATA_DIRS"
  '';

  checkPhase =
    let
      pytestFlags = [
        # missing translation strings in potfiles
        "--deselect=tests/test_po.py::TPOTFILESIN::test_missing"
@@ -154,20 +163,13 @@ python3.pkgs.buildPythonApplication rec {
      ++ lib.optionals (withXineBackend || !withGstPlugins) [
        "--ignore=tests/plugin/test_replaygain.py"
      ];

  env.LC_ALL = "en_US.UTF-8";

  preCheck = ''
    export GDK_PIXBUF_MODULE_FILE=${librsvg}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
    export XDG_DATA_DIRS="$out/share:${gtk3}/share/gsettings-schemas/${gtk3.name}:$XDG_ICON_DIRS:$XDG_DATA_DIRS"
  '';

  checkPhase = ''
    in
    ''
      runHook preCheck

      xvfb-run -s '-screen 0 1920x1080x24' \
        dbus-run-session --config-file=${dbus}/share/dbus-1/session.conf \
      pytest $pytestFlags
        pytest ${lib.concatStringsSep " " pytestFlags}

      runHook postCheck
    '';