1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitLab,
5 gobject-introspection,
6 idna,
7 libsoup_3,
8 packaging,
9 precis-i18n,
10 pygobject3,
11 pyopenssl,
12 pytestCheckHook,
13 pythonOlder,
14 setuptools,
15}:
16
17buildPythonPackage rec {
18 pname = "nbxmpp";
19 version = "4.5.4";
20 format = "pyproject";
21
22 disabled = pythonOlder "3.10";
23
24 src = fetchFromGitLab {
25 domain = "dev.gajim.org";
26 owner = "gajim";
27 repo = "python-nbxmpp";
28 rev = "refs/tags/${version}";
29 hash = "sha256-n5Pzw8aikzCml+dOhkLoHR0ytFkEb4AYpw/bIpo6Wd4=";
30 };
31
32 nativeBuildInputs = [
33 # required for pythonImportsCheck otherwise libsoup cannot be found
34 gobject-introspection
35 setuptools
36 ];
37
38 buildInputs = [ precis-i18n ];
39
40 propagatedBuildInputs = [
41 gobject-introspection
42 idna
43 libsoup_3
44 packaging
45 pygobject3
46 pyopenssl
47 ];
48
49 nativeCheckInputs = [ pytestCheckHook ];
50
51 pythonImportsCheck = [ "nbxmpp" ];
52
53 meta = with lib; {
54 homepage = "https://dev.gajim.org/gajim/python-nbxmpp";
55 description = "Non-blocking Jabber/XMPP module";
56 license = licenses.gpl3Plus;
57 maintainers = with maintainers; [ abbradar ];
58 };
59}