02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
57 lines
1 KiB
Nix
57 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitLab
|
|
, gobject-introspection
|
|
, idna
|
|
, libsoup
|
|
, precis-i18n
|
|
, pygobject3
|
|
, pyopenssl
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nbxmpp";
|
|
version = "3.1.0";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "dev.gajim.org";
|
|
owner = "gajim";
|
|
repo = "python-nbxmpp";
|
|
rev = version;
|
|
sha256 = "sha256-QnvV/sAxdl8V5nV1hk8sRrL6nn015dAy6cXAiy2Tmbs=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
# required for pythonImportsCheck otherwise libsoup cannot be found
|
|
gobject-introspection
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|