2021-05-20 23:08:51 +00:00
|
|
|
{ lib, buildPythonPackage, pythonOlder, fetchFromGitLab
|
|
|
|
, gobject-introspection, idna, libsoup, precis-i18n, pygobject3, pyopenssl
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
buildPythonPackage rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "nbxmpp";
|
2021-05-20 23:08:51 +00:00
|
|
|
version = "2.0.2";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# Tests aren't included in PyPI tarball.
|
2021-05-20 23:08:51 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "dev.gajim.org";
|
|
|
|
owner = "gajim";
|
|
|
|
repo = "python-nbxmpp";
|
|
|
|
rev = "nbxmpp-${version}";
|
|
|
|
sha256 = "0z27mxgfk7hvpx0xdrd8g9441rywv74yk7s83zjnc2mc7xvpwhf4";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
buildInputs = [ precis-i18n ];
|
2021-02-13 14:23:35 +00:00
|
|
|
propagatedBuildInputs = [ gobject-introspection idna libsoup pygobject3 pyopenssl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
pythonImportsCheck = [ "nbxmpp" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://dev.gajim.org/gajim/python-nbxmpp";
|
|
|
|
description = "Non-blocking Jabber/XMPP module";
|
2021-05-20 23:08:51 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|