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