1{ stdenv, buildPythonPackage, fetchzip, pyopenssl, python }: 2 3let 4 pname = "nbxmpp"; 5 version = "0.6.6"; 6 name = "${pname}-${version}"; 7in buildPythonPackage rec { 8 inherit pname version; 9 # Tests aren't included in PyPI tarball. 10 src = fetchzip { 11 name = "${name}.tar.bz2"; 12 url = "https://dev.gajim.org/gajim/python-nbxmpp/repository/archive.tar.bz2?" 13 + "ref=${name}"; 14 sha256 = "10n7z613p00q15dplsvdrz11s9yq26jy2qack6nd8k7fivfhlcmz"; 15 }; 16 17 propagatedBuildInputs = [ pyopenssl ]; 18 19 checkPhase = '' 20 # Disable tests requiring networking 21 echo "" > test/unit/test_xmpp_transports_nb2.py 22 ${python.executable} test/runtests.py 23 ''; 24 25 meta = with stdenv.lib; { 26 homepage = "https://dev.gajim.org/gajim/python-nbxmpp"; 27 description = "Non-blocking Jabber/XMPP module"; 28 license = licenses.gpl3; 29 maintainers = with maintainers; [ abbradar ]; 30 }; 31}