mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 09:53:17 +00:00
31 lines
842 B
Nix
31 lines
842 B
Nix
{ stdenv, buildPythonPackage, fetchzip, pyopenssl }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nbxmpp";
|
|
version = "0.6.4";
|
|
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 = "0mikgksf01w82wnnm0phmzkijk2c93g24fzd59s71n3zy7f7dx3l";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|