about summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/poezio/default.nix
blob: 7d83dcf2d23c2407bdab56ddf399d300a8593496 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{ lib
, aiodns
, buildPythonApplication
, cffi
, fetchFromGitHub
, mpd2
, pkg-config
, potr
, pyasn1
, pyasn1-modules
, pyinotify
, pytestCheckHook
, pythonOlder
, setuptools
, slixmpp
, typing-extensions
}:

buildPythonApplication rec {
  pname = "poezio";
  version = "0.13.1";
  disabled = pythonOlder "3.4";

  src = fetchFromGitHub {
    owner = pname;
    repo = pname;
    rev = "v${version}";
    sha256 = "041y61pcbdb86s04qwp8s1g6bp84yskc7vdizwpi2hz18y01x5fy";
  };

  nativeBuildInputs = [
    pkg-config
  ];

  propagatedBuildInputs = [
    aiodns
    cffi
    mpd2
    potr
    pyasn1
    pyasn1-modules
    pyinotify
    setuptools
    slixmpp
  ] ++ lib.optionals (pythonOlder "3.7") [
    typing-extensions
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  meta = with lib; {
    description = "Free console XMPP client";
    homepage = "https://poez.io";
    license = licenses.zlib;
    maintainers = [ maintainers.lsix ];
  };
}