2018-03-21 01:08:42 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchzip, pyopenssl }:
|
2017-11-06 10:26:21 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nbxmpp";
|
2018-05-01 22:52:09 +01:00
|
|
|
version = "0.6.5";
|
2018-03-21 01:08:42 +00:00
|
|
|
name = "${pname}-${version}";
|
2017-11-06 10:26:21 +00:00
|
|
|
|
2018-03-21 01:08:42 +00:00
|
|
|
# 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}";
|
2018-05-01 22:52:09 +01:00
|
|
|
sha256 = "0b7jw07s4mnp20gcg8raw4bhw2h1hxf75cbn4f2ynj69fbpfr38h";
|
2017-11-06 10:26:21 +00:00
|
|
|
};
|
|
|
|
|
2018-03-21 01:08:42 +00:00
|
|
|
propagatedBuildInputs = [ pyopenssl ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
# Disable tests requiring networking
|
|
|
|
echo "" > test/unit/test_xmpp_transports_nb2.py
|
|
|
|
python test/runtests.py
|
|
|
|
'';
|
|
|
|
|
2017-11-06 10:26:21 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://dev.gajim.org/gajim/python-nbxmpp";
|
|
|
|
description = "Non-blocking Jabber/XMPP module";
|
|
|
|
license = licenses.gpl3;
|
2018-03-21 01:08:42 +00:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
2017-11-06 10:26:21 +00:00
|
|
|
};
|
|
|
|
}
|