anchor.diff:          }$GST_PLUGIN_PATH"'"
       }' scripts/gajim.in
   
  -    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
  +    # requires network access
  +    echo "" > test/integration/test_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
  
positive.code: , ldns, pythonPackages
  
  # Test requirements
  , xvfb_run, dnsutils
  
  , enableJingle ? true, farstream ? null, gst_plugins_bad ? null
  ,                      libnice ? null
  
negative.code:   nativeBuildInputs = [
      autoreconfHook pythonPackages.wrapPython intltool pkgconfig
      # Test dependencies
      xvfb_run
    ];
  
    autoreconfPhase = ''
      sed -e 's/which/type -P/;s,\./configure,:,' autogen.sh | bash
    '';
  
    propagatedBuildInputs = with pythonPackages; [
      libasyncns
      pygobject2 pyGtkGlade
      pyasn1
      pyxdg
      nbxmpp
      pyopenssl dbus-python
    ] ++ optional enableE2E pythonPackages.pycrypto
      ++ optional enableRST pythonPackages.docutils
      ++ optional enableNotifications pythonPackages.notify
  