vscode-extensions.yoavbls.pretty-ts-errors: 0.5.4 -> 0.6.1 (#363464)
[NixPkgs.git] / pkgs / development / python-modules / aioxmpp / default.nix
blobce4c4970dc6617fd6b4b61d986245da677942b65
2   lib,
3   aioopenssl,
4   aiosasl,
5   babel,
6   buildPythonPackage,
7   dnspython,
8   fetchFromGitHub,
9   lxml,
10   multidict,
11   pyasn1-modules,
12   pyasn1,
13   pyopenssl,
14   pytestCheckHook,
15   pythonAtLeast,
16   pythonOlder,
17   pytz,
18   setuptools,
19   sortedcollections,
20   tzlocal,
23 buildPythonPackage rec {
24   pname = "aioxmpp";
25   version = "0.13.3";
26   pyproject = true;
28   disabled = pythonOlder "3.7";
30   src = fetchFromGitHub {
31     owner = "horazont";
32     repo = "aioxmpp";
33     tag = "v${version}";
34     hash = "sha256-bQPKEM5eKhFI3Kx3U1espdxqjnG4yUgOXmYCrd98PDo=";
35   };
37   pythonRelaxDeps = [
38     "lxml"
39   ];
41   build-system = [ setuptools ];
43   dependencies = [
44     aiosasl
45     aioopenssl
46     babel
47     dnspython
48     lxml
49     multidict
50     pyasn1
51     pyasn1-modules
52     pyopenssl
53     pytz
54     sortedcollections
55     tzlocal
56   ];
58   pythonImportsCheck = [
59     "aioxmpp"
60     "aioxmpp.node"
61     "aioxmpp.security_layer"
62     "aioxmpp.stanza"
63     "aioxmpp.stream"
64   ];
66   nativeCheckInputs = [ pytestCheckHook ];
68   disabledTestPaths = [ "benchmarks" ];
70   disabledTests =
71     [
72       # AttributeError: 'zoneinfo.ZoneInfo' object has no attribute 'normalize'
73       "test_convert_field_datetime_default_locale"
74     ]
75     ++ lib.optionals (pythonAtLeast "3.12") [
76       # asyncio issues
77       "test_is_abstract"
78       "Testbackground"
79       "TestCapturingXSO"
80       "Testcheck_x509"
81       "TestClient"
82       "TestIntegerType"
83       "TestStanzaStream"
84       "TestStanzaToken"
85       "TestXMLStream"
86     ];
88   meta = {
89     description = "Pure-python XMPP library for asyncio";
90     homepage = "https://github.com/horazont/aioxmpp";
91     changelog = "https://github.com/horazont/aioxmpp/blob/${src.rev}/docs/api/changelog.rst";
92     license = lib.licenses.lgpl3Plus;
93     maintainers = with lib.maintainers; [ dotlambda ];
94   };