2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitLab,
|
|
|
|
gobject-introspection,
|
|
|
|
idna,
|
|
|
|
libsoup_3,
|
|
|
|
packaging,
|
|
|
|
precis-i18n,
|
|
|
|
pygobject3,
|
|
|
|
pyopenssl,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2021-05-20 23:08:51 +00:00
|
|
|
}:
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "4.5.4";
|
2023-08-22 20:05:09 +00:00
|
|
|
format = "pyproject";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
disabled = pythonOlder "3.10";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "dev.gajim.org";
|
|
|
|
owner = "gajim";
|
|
|
|
repo = "python-nbxmpp";
|
2023-08-22 20:05:09 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-n5Pzw8aikzCml+dOhkLoHR0ytFkEb4AYpw/bIpo6Wd4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
# required for pythonImportsCheck otherwise libsoup cannot be found
|
|
|
|
gobject-introspection
|
2023-08-22 20:05:09 +00:00
|
|
|
setuptools
|
2022-08-12 12:06:08 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
buildInputs = [ precis-i18n ];
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
gobject-introspection
|
|
|
|
idna
|
2023-01-11 07:51:40 +00:00
|
|
|
libsoup_3
|
2023-08-22 20:05:09 +00:00
|
|
|
packaging
|
2021-08-05 21:33:18 +00:00
|
|
|
pygobject3
|
|
|
|
pyopenssl
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "nbxmpp" ];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|