2020-08-19 06:49:04 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchzip, gobject-introspection, idna, libsoup, precis-i18n, pygobject3, pyopenssl }:
|
2017-11-06 10:26:21 +00:00
|
|
|
|
2018-06-23 14:27:58 +01:00
|
|
|
let
|
2017-11-06 10:26:21 +00:00
|
|
|
pname = "nbxmpp";
|
2020-08-19 06:49:04 +01:00
|
|
|
version = "1.0.2";
|
2018-03-21 01:08:42 +00:00
|
|
|
name = "${pname}-${version}";
|
2019-08-13 22:52:01 +01:00
|
|
|
in buildPythonPackage {
|
2018-06-23 14:27:58 +01:00
|
|
|
inherit pname version;
|
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}";
|
2020-08-19 06:49:04 +01:00
|
|
|
sha256 = "1rhzsakqrybzq5j5b9400wjd14pncph47c1ggn5a6f3di03lk4az";
|
2017-11-06 10:26:21 +00:00
|
|
|
};
|
|
|
|
|
2020-08-19 06:49:04 +01:00
|
|
|
buildInputs = [ precis-i18n ];
|
|
|
|
checkInputs = [ gobject-introspection libsoup pygobject3 ];
|
|
|
|
propagatedBuildInputs = [ idna pyopenssl ];
|
2018-03-21 01:08:42 +00:00
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|