1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-22 06:05:13 +00:00
nixpkgs/pkgs/development/python-modules/nbxmpp/default.nix
aszlig 9da116091b
nbxmpp: 0.6.5 -> 0.6.6
Upstream changes:

  * Record all SSL errors instead of only the first
  * Pass arguments to plugin/plugout methods
  * Allow the Roster to be initalized without requesting it from the
    server

Tested by building and running Gajim 1.0.3.

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @abbradar
2018-06-08 20:26:04 +02:00

31 lines
842 B
Nix

{ stdenv, buildPythonPackage, fetchzip, pyopenssl }:
buildPythonPackage rec {
pname = "nbxmpp";
version = "0.6.6";
name = "${pname}-${version}";
# Tests aren't included in PyPI tarball.
src = fetchzip {
name = "${name}.tar.bz2";
url = "https://dev.gajim.org/gajim/python-nbxmpp/repository/archive.tar.bz2?"
+ "ref=${name}";
sha256 = "10n7z613p00q15dplsvdrz11s9yq26jy2qack6nd8k7fivfhlcmz";
};
propagatedBuildInputs = [ pyopenssl ];
checkPhase = ''
# Disable tests requiring networking
echo "" > test/unit/test_xmpp_transports_nb2.py
python test/runtests.py
'';
meta = with stdenv.lib; {
homepage = "https://dev.gajim.org/gajim/python-nbxmpp";
description = "Non-blocking Jabber/XMPP module";
license = licenses.gpl3;
maintainers = with maintainers; [ abbradar ];
};
}