anchor.diff:      sed -i -e 's/return helpers.is_in_path('"'"'drill.*/return True/' \
         src/features_window.py
       sed -i -e "s|'drill'|'${ldns}/bin/drill'|" src/common/resolver.py
  +
  +    # We want to run tests in installCheckPhase rather than checkPhase to test
  +    # whether the *installed* version of Gajim works rather than just whether it
  +    # works in the unpacked source tree.
  +    sed -i -e '/sys\.path\.insert.*gajim_root.*\/src/d' test/lib/__init__.py
     '' + optionalString enableSpelling ''
       sed -i -e 's|=.*find_lib.*|= "${gtkspell2}/lib/libgtkspell.so"|'   \
         src/gtkspell.py
  
positive.code: { stdenv, fetchurl, python, intltool, pkgconfig, libX11
  , ldns, pythonPackages
  
  , enableJingle ? true, farstream ? null, gst_plugins_bad ? null
  ,                      libnice ? null
  
negative.code:     done
    '';
  
    doInstallCheck = true;
    installCheckPhase = ''
      XDG_DATA_DIRS="$out/share/gajim''${XDG_DATA_DIRS:+:}$XDG_DATA_DIRS" \
      PYTHONPATH="test:$out/share/gajim/src:''${PYTHONPATH:+:}$PYTHONPATH" \
        xvfb-run make test
    '';
  
    enableParallelBuilding = true;
  
    meta = {
  