about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/aioxmpp/default.nix
blob: edc9b8def3da9a4a03e4f3c0530434fe80380804 (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
60
61
62
63
64
65
66
67
68
69
70
{ lib
, buildPythonPackage
, fetchFromGitHub
, aiosasl
, aioopenssl
, babel
, dnspython
, lxml
, multidict
, pyasn1
, pyasn1-modules
, pyopenssl
, pytz
, sortedcollections
, tzlocal
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "aioxmpp";
  version = "0.13.3";

  format = "setuptools";

  src = fetchFromGitHub {
    owner = "horazont";
    repo = "aioxmpp";
    rev = "refs/tags/v${version}";
    hash = "sha256-bQPKEM5eKhFI3Kx3U1espdxqjnG4yUgOXmYCrd98PDo=";
  };

  propagatedBuildInputs = [
    aiosasl
    aioopenssl
    babel
    dnspython
    lxml
    multidict
    pyasn1
    pyasn1-modules
    pyopenssl
    pytz
    sortedcollections
    tzlocal
  ];

  pythonImportsCheck = [
    "aioxmpp"
    "aioxmpp.node"
    "aioxmpp.security_layer"
    "aioxmpp.stanza"
    "aioxmpp.stream"
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  disabledTestPaths = [
    "benchmarks"
  ];

  meta = {
    changelog = "https://github.com/horazont/aioxmpp/blob/${src.rev}/docs/api/changelog.rst";
    description = "Pure-python XMPP library for asyncio";
    homepage = "https://github.com/horazont/aioxmpp";
    license = lib.licenses.lgpl3Plus;
    maintainers = with lib.maintainers; [ dotlambda ];
  };
}