32b3615f60
The list of upstream changes is huge, so I'm not pasting it here in the commit message, but here is the upstream URL: https://dev.gajim.org/gajim/gajim/blob/gajim-1.1.2/ChangeLog One of the most visible updates are the design changes for various dialogs and the Emoji overhauls. On our end, we now need three more dependencies, namely cssutils, precis-i18n and keyring, which I added accordingly. In addition, the test runner is now integrated into setup.py, which we now use. I also cleaned up the package expression a bit, eg. it's no longer wrapped in a big "with lib;", so that "nix-instantiate --parse" is able to detect attribute errors (which is very useful if you have editor integration). Signed-off-by: aszlig <aszlig@nix.build>
71 lines
2.1 KiB
Nix
71 lines
2.1 KiB
Nix
{ lib, fetchurl, gettext, wrapGAppsHook
|
|
|
|
# Native dependencies
|
|
, python3, gtk3, gobject-introspection, defaultIconTheme
|
|
|
|
# Test dependencies
|
|
, xvfb_run, dbus
|
|
|
|
# Optional dependencies
|
|
, enableJingle ? true, farstream, gstreamer, gst-plugins-base, gst-libav, gst-plugins-ugly
|
|
, enableE2E ? true
|
|
, enableSecrets ? true, libsecret
|
|
, enableRST ? true, docutils
|
|
, enableSpelling ? true, gspell
|
|
, enableUPnP ? true, gupnp-igd
|
|
, enableOmemoPluginDependencies ? true
|
|
, extraPythonPackages ? ps: []
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "gajim";
|
|
majorVersion = "1.1";
|
|
version = "${majorVersion}.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://gajim.org/downloads/${majorVersion}/gajim-${version}.tar.bz2";
|
|
sha256 = "1lx03cgi58z54xb7mhs6bc715lc00w5mpysf9n3q8zgn759fm0rj";
|
|
};
|
|
|
|
postPatch = ''
|
|
# This test requires network access
|
|
echo "" > test/integration/test_resolver.py
|
|
'';
|
|
|
|
buildInputs = [
|
|
gobject-introspection gtk3 defaultIconTheme
|
|
] ++ lib.optionals enableJingle [ farstream gstreamer gst-plugins-base gst-libav gst-plugins-ugly ]
|
|
++ lib.optional enableSecrets libsecret
|
|
++ lib.optional enableSpelling gspell
|
|
++ lib.optional enableUPnP gupnp-igd;
|
|
|
|
nativeBuildInputs = [
|
|
gettext wrapGAppsHook
|
|
];
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
nbxmpp pyasn1 pygobject3 dbus-python pillow cssutils precis-i18n keyring
|
|
] ++ lib.optionals enableE2E [ pycrypto python-gnupg ]
|
|
++ lib.optional enableRST docutils
|
|
++ lib.optionals enableOmemoPluginDependencies [ python-axolotl qrcode ]
|
|
++ extraPythonPackages python3.pkgs;
|
|
|
|
checkInputs = [ xvfb_run dbus.daemon ];
|
|
|
|
checkPhase = ''
|
|
xvfb-run dbus-run-session \
|
|
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
|
|
${python3.interpreter} setup.py test
|
|
'';
|
|
|
|
meta = {
|
|
homepage = http://gajim.org/;
|
|
description = "Jabber client written in PyGTK";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [ raskin aszlig abbradar ];
|
|
downloadPage = "http://gajim.org/downloads.php";
|
|
updateWalker = true;
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|