anchor.diff:  { buildPythonApplication, lib, fetchurl, gettext, wrapGAppsHook
   , python, gtk3, gobjectIntrospection
   , nbxmpp, pyasn1, pygobject3, dbus-python, pillow
  +, xvfb_run, dbus
   , enableJingle ? true, farstream, gstreamer, gst-plugins-base, gst-libav, gst-plugins-ugly
   , enableE2E ? true, pycrypto, python-gnupg
   , enableSecrets ? true, libsecret
  
positive.code:     ++ optionals enableOmemoPluginDependencies [ python-axolotl qrcode ]
      ++ extraPythonPackages pythonPackages;
  
    checkPhase = ''
      ${python.interpreter} test/runtests.py
    '';
  
    # Tests try to use GTK+ which fails.
    doCheck = false;
  
    meta = {
      homepage = http://gajim.org/;
  
negative.code:     sha256 = "10da4imfldj04917h54vrmg70a1d832jd8p6386paa5jqzf5qk20";
    };
  
    postPatch = ''
      # This test requires network access
      echo "" > test/integration/test_resolver.py
    '';
  
    buildInputs = [
      gobjectIntrospection gtk3
    ] ++ optionals enableJingle [ farstream gstreamer gst-plugins-base gst-libav gst-plugins-ugly ]
  