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:   version = "0.16.6";
  
    src = fetchurl {
      url = "http://www.gajim.org/downloads/0.16/gajim-${version}.tar.bz2";
      sha256 = "1p3qwzy07f0wkika9yigyiq167l2k6wn12flqa7x55z4ihbysmqk";
    };
  
    patches = [
      (fetchurl {
        name = "gajim-icon-index.patch";
        url = "https://dev.gajim.org/gajim/gajim/commit/7d20ed2b98a3070add188efab7308a5a06d9f4a2.diff";
        sha256 = "0w54hr5dq9y36val55kmh8d6cid7h4fs2nghx09714jylz2nyxxv";
      })
    ];
  
    postPatch = ''
      sed -i -e '0,/^[^#]/ {
  
negative.code: { stdenv, fetchurl, autoreconfHook, python, intltool, pkgconfig, libX11
  , ldns, pythonPackages
  
  # Test requirements
  , xvfb_run, dnsutils
  
  , enableJingle ? true, farstream ? null, gst_plugins_bad ? null
  ,                      libnice ? null
  