2018-06-23 15:27:58 +02:00
|
|
|
{ stdenv, buildPythonPackage, fetchzip, pyopenssl, python }:
|
2017-11-06 11:26:21 +01:00
|
|
|
|
2018-06-23 15:27:58 +02:00
|
|
|
let
|
2017-11-06 11:26:21 +01:00
|
|
|
pname = "nbxmpp";
|
2019-03-23 00:09:17 +01:00
|
|
|
version = "0.6.10";
|
2018-03-21 02:08:42 +01:00
|
|
|
name = "${pname}-${version}";
|
2019-08-13 23:52:01 +02:00
|
|
|
in buildPythonPackage {
|
2018-06-23 15:27:58 +02:00
|
|
|
inherit pname version;
|
2018-03-21 02:08:42 +01: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}";
|
2019-03-23 00:09:17 +01:00
|
|
|
sha256 = "1w31a747mj9rvlp3n20z0fnvyvihphkgkyr22sk2kap3migw8vai";
|
2017-11-06 11:26:21 +01:00
|
|
|
};
|
|
|
|
|
2018-03-21 02:08:42 +01:00
|
|
|
propagatedBuildInputs = [ pyopenssl ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
# Disable tests requiring networking
|
|
|
|
echo "" > test/unit/test_xmpp_transports_nb2.py
|
2018-06-23 15:27:58 +02:00
|
|
|
${python.executable} test/runtests.py
|
2018-03-21 02:08:42 +01:00
|
|
|
'';
|
|
|
|
|
2017-11-06 11:26:21 +01: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 02:08:42 +01:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
2017-11-06 11:26:21 +01:00
|
|
|
};
|
|
|
|
}
|