2018-03-20 18:08:59 -07:00
|
|
|
{ buildPythonApplication, lib, fetchurl, gettext, wrapGAppsHook
|
2018-12-02 03:41:15 -08:00
|
|
|
, python, gtk3, gobject-introspection
|
2018-03-25 14:37:38 -07:00
|
|
|
, nbxmpp, pyasn1, pygobject3, gnome3, dbus-python, pillow
|
2018-03-25 14:32:44 -07:00
|
|
|
, xvfb_run, dbus
|
2018-03-20 18:08:59 -07:00
|
|
|
, enableJingle ? true, farstream, gstreamer, gst-plugins-base, gst-libav, gst-plugins-ugly
|
|
|
|
, enableE2E ? true, pycrypto, python-gnupg
|
|
|
|
, enableSecrets ? true, libsecret
|
|
|
|
, enableRST ? true, docutils
|
|
|
|
, enableSpelling ? true, gspell
|
|
|
|
, enableUPnP ? true, gupnp-igd
|
|
|
|
, enableOmemoPluginDependencies ? true, python-axolotl, qrcode
|
|
|
|
, extraPythonPackages ? pkgs: [], pythonPackages
|
2013-05-24 20:18:08 -07:00
|
|
|
}:
|
|
|
|
|
2018-03-20 18:08:59 -07:00
|
|
|
with lib;
|
2013-05-24 20:18:08 -07:00
|
|
|
|
2018-03-20 18:08:59 -07:00
|
|
|
buildPythonApplication rec {
|
2013-05-24 20:18:08 -07:00
|
|
|
name = "gajim-${version}";
|
2018-03-20 18:08:59 -07:00
|
|
|
majorVersion = "1.0";
|
2018-06-08 11:32:20 -07:00
|
|
|
version = "${majorVersion}.3";
|
2013-05-24 20:18:08 -07:00
|
|
|
|
2009-04-12 12:34:20 -07:00
|
|
|
src = fetchurl {
|
2018-03-07 05:42:59 -08:00
|
|
|
url = "https://gajim.org/downloads/${majorVersion}/gajim-${version}.tar.bz2";
|
2018-06-08 11:32:20 -07:00
|
|
|
sha256 = "0ds4rqwfrpj89a489w6yih8gx5zi7qa4ffgld950fk7s0qxvcfnb";
|
2018-03-07 05:42:59 -08:00
|
|
|
};
|
|
|
|
|
2018-03-25 14:32:44 -07:00
|
|
|
postPatch = ''
|
|
|
|
# This test requires network access
|
|
|
|
echo "" > test/integration/test_resolver.py
|
|
|
|
'';
|
|
|
|
|
2013-05-24 20:18:08 -07:00
|
|
|
buildInputs = [
|
2018-12-02 03:41:15 -08:00
|
|
|
gobject-introspection gtk3 gnome3.defaultIconTheme
|
2018-03-20 18:08:59 -07:00
|
|
|
] ++ optionals enableJingle [ farstream gstreamer gst-plugins-base gst-libav gst-plugins-ugly ]
|
|
|
|
++ optional enableSecrets libsecret
|
|
|
|
++ optional enableSpelling gspell
|
|
|
|
++ optional enableUPnP gupnp-igd;
|
2016-08-16 17:05:55 -07:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2018-03-20 18:08:59 -07:00
|
|
|
gettext wrapGAppsHook
|
2016-08-16 17:05:55 -07:00
|
|
|
];
|
|
|
|
|
2018-03-20 18:08:59 -07:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
nbxmpp pyasn1 pygobject3 dbus-python pillow
|
|
|
|
] ++ optionals enableE2E [ pycrypto python-gnupg ]
|
|
|
|
++ optional enableRST docutils
|
|
|
|
++ optionals enableOmemoPluginDependencies [ python-axolotl qrcode ]
|
|
|
|
++ extraPythonPackages pythonPackages;
|
2013-05-24 20:18:08 -07:00
|
|
|
|
2018-03-25 14:32:44 -07:00
|
|
|
checkInputs = [ xvfb_run dbus.daemon ];
|
|
|
|
|
2018-03-20 18:08:59 -07:00
|
|
|
checkPhase = ''
|
2018-03-25 14:32:44 -07:00
|
|
|
xvfb-run dbus-run-session \
|
|
|
|
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
|
|
|
|
${python.interpreter} test/runtests.py
|
2017-01-27 11:56:02 -08:00
|
|
|
'';
|
|
|
|
|
2009-04-12 12:34:20 -07:00
|
|
|
meta = {
|
2017-08-01 13:03:30 -07:00
|
|
|
homepage = http://gajim.org/;
|
2013-05-24 20:18:08 -07:00
|
|
|
description = "Jabber client written in PyGTK";
|
|
|
|
license = licenses.gpl3Plus;
|
2018-03-20 18:08:59 -07:00
|
|
|
maintainers = with maintainers; [ raskin aszlig abbradar ];
|
2014-10-07 05:23:15 -07:00
|
|
|
downloadPage = "http://gajim.org/downloads.php";
|
|
|
|
updateWalker = true;
|
2018-03-20 18:08:59 -07:00
|
|
|
platforms = platforms.linux;
|
2009-04-12 12:34:20 -07:00
|
|
|
};
|
|
|
|
}
|