depot/third_party/nixpkgs/pkgs/development/python-modules/aioxmpp/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

94 lines
1.7 KiB
Nix

{
lib,
aioopenssl,
aiosasl,
babel,
buildPythonPackage,
dnspython,
fetchFromGitHub,
lxml,
multidict,
pyasn1-modules,
pyasn1,
pyopenssl,
pytestCheckHook,
pythonAtLeast,
pythonOlder,
pytz,
setuptools,
sortedcollections,
tzlocal,
}:
buildPythonPackage rec {
pname = "aioxmpp";
version = "0.13.3";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "horazont";
repo = "aioxmpp";
rev = "refs/tags/v${version}";
hash = "sha256-bQPKEM5eKhFI3Kx3U1espdxqjnG4yUgOXmYCrd98PDo=";
};
pythonRelaxDeps = [
"lxml"
];
build-system = [ setuptools ];
dependencies = [
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" ];
disabledTests = [
# AttributeError: 'zoneinfo.ZoneInfo' object has no attribute 'normalize'
"test_convert_field_datetime_default_locale"
] ++ lib.optionals (pythonAtLeast "3.12") [
# asyncio issues
"test_is_abstract"
"Testbackground"
"TestCapturingXSO"
"Testcheck_x509"
"TestClient"
"TestIntegerType"
"TestStanzaStream"
"TestStanzaToken"
"TestXMLStream"
];
meta = {
description = "Pure-python XMPP library for asyncio";
homepage = "https://github.com/horazont/aioxmpp";
changelog = "https://github.com/horazont/aioxmpp/blob/${src.rev}/docs/api/changelog.rst";
license = lib.licenses.lgpl3Plus;
maintainers = with lib.maintainers; [ dotlambda ];
};
}