52 lines
928 B
Nix
52 lines
928 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitLab
|
|
, gobject-introspection
|
|
, idna
|
|
, libsoup
|
|
, precis-i18n
|
|
, pygobject3
|
|
, pyopenssl
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nbxmpp";
|
|
version = "2.0.3";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "dev.gajim.org";
|
|
owner = "gajim";
|
|
repo = "python-nbxmpp";
|
|
rev = "nbxmpp-${version}";
|
|
sha256 = "0gzyd25sja7n49f1ihyg6gch1b0r409r0p3qpwn8w8xy7jgn6ysc";
|
|
};
|
|
|
|
buildInputs = [
|
|
precis-i18n
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
gobject-introspection
|
|
idna
|
|
libsoup
|
|
pygobject3
|
|
pyopenssl
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "nbxmpp" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://dev.gajim.org/gajim/python-nbxmpp";
|
|
description = "Non-blocking Jabber/XMPP module";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ abbradar ];
|
|
};
|
|
}
|