nixpkgs/pkgs/applications/networking/instant-messengers/gajim/default.nix

68 lines
2.1 KiB
Nix
Raw Normal View History

2018-03-21 01:08:59 +00:00
{ buildPythonApplication, lib, fetchurl, gettext, wrapGAppsHook
, python, gtk3, gobjectIntrospection
, nbxmpp, pyasn1, pygobject3, gnome3, dbus-python, pillow
, xvfb_run, dbus
2018-03-21 01:08:59 +00: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
}:
2018-03-21 01:08:59 +00:00
with lib;
2018-03-21 01:08:59 +00:00
buildPythonApplication rec {
name = "gajim-${version}";
2018-03-21 01:08:59 +00:00
majorVersion = "1.0";
version = "${majorVersion}.3";
src = fetchurl {
url = "https://gajim.org/downloads/${majorVersion}/gajim-${version}.tar.bz2";
sha256 = "0ds4rqwfrpj89a489w6yih8gx5zi7qa4ffgld950fk7s0qxvcfnb";
};
postPatch = ''
# This test requires network access
echo "" > test/integration/test_resolver.py
'';
buildInputs = [
gobjectIntrospection gtk3 gnome3.defaultIconTheme
2018-03-21 01:08:59 +00: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-17 00:05:55 +00:00
nativeBuildInputs = [
2018-03-21 01:08:59 +00:00
gettext wrapGAppsHook
2016-08-17 00:05:55 +00:00
];
2018-03-21 01:08:59 +00:00
propagatedBuildInputs = [
nbxmpp pyasn1 pygobject3 dbus-python pillow
] ++ optionals enableE2E [ pycrypto python-gnupg ]
++ optional enableRST docutils
++ optionals enableOmemoPluginDependencies [ python-axolotl qrcode ]
++ extraPythonPackages pythonPackages;
checkInputs = [ xvfb_run dbus.daemon ];
2018-03-21 01:08:59 +00:00
checkPhase = ''
xvfb-run dbus-run-session \
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
${python.interpreter} test/runtests.py
'';
meta = {
homepage = http://gajim.org/;
description = "Jabber client written in PyGTK";
license = licenses.gpl3Plus;
2018-03-21 01:08:59 +00:00
maintainers = with maintainers; [ raskin aszlig abbradar ];
2014-10-07 12:23:15 +00:00
downloadPage = "http://gajim.org/downloads.php";
updateWalker = true;
2018-03-21 01:08:59 +00:00
platforms = platforms.linux;
};
}