2021-05-21 22:01:20 +02:00
|
|
|
# Copyright 2020-2021 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2021-06-30 10:04:04 +02:00
|
|
|
EAPI=8
|
2021-05-21 22:01:20 +02:00
|
|
|
|
|
|
|
PYTHON_COMPAT=( python3_{8..9})
|
|
|
|
DISTUTILS_USE_SETUPTOOLS="pyproject.toml"
|
|
|
|
|
|
|
|
inherit distutils-r1
|
|
|
|
|
|
|
|
DESCRIPTION="A Python Matrix client library, designed according to sans I/O principles"
|
|
|
|
HOMEPAGE="https://github.com/poljar/matrix-nio"
|
|
|
|
SRC_URI="https://github.com/poljar/matrix-nio/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="ISC"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64"
|
2021-05-22 21:29:45 +02:00
|
|
|
IUSE="e2e test"
|
2021-05-21 22:01:20 +02:00
|
|
|
|
2021-06-30 10:04:04 +02:00
|
|
|
# 30.6.2021: 3.10 blocked by aiohttp{,-socks}, future, logbook, olm, aioresponses, pytest-{aiohttp,benchmark,flake8,isort}
|
2021-05-21 22:01:20 +02:00
|
|
|
RDEPEND="
|
|
|
|
>=dev-python/aiohttp-3.7.4[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/aiohttp-socks-0.6.0[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/aiofiles-0.6.0[${PYTHON_USEDEP}]
|
2021-06-30 10:04:04 +02:00
|
|
|
>=dev-python/future-0.18.2[${PYTHON_USEDEP}]
|
2021-05-21 22:01:20 +02:00
|
|
|
>=dev-python/h11-0.12.0[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/hyper-h2-4.0.0[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/logbook-1.5.3[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/jsonschema-3.2.0[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/unpaddedbase64-2.1.0[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/pycryptodome-3.10.1[${PYTHON_USEDEP}]
|
|
|
|
e2e? (
|
|
|
|
>=dev-libs/olm-3.1.3[python(-),${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/peewee-3.14.4[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/cachetools-4.2.1[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/atomicwrites-1.4.0[${PYTHON_USEDEP}]
|
|
|
|
)
|
|
|
|
"
|
|
|
|
DEPEND="
|
|
|
|
test? (
|
|
|
|
${RDEPEND}
|
|
|
|
dev-python/aioresponses[${PYTHON_USEDEP}]
|
|
|
|
dev-python/atomicwrites[${PYTHON_USEDEP}]
|
|
|
|
dev-python/cachetools[${PYTHON_USEDEP}]
|
|
|
|
dev-python/Faker[${PYTHON_USEDEP}]
|
|
|
|
dev-python/peewee[${PYTHON_USEDEP}]
|
|
|
|
dev-python/pytest-aiohttp[${PYTHON_USEDEP}]
|
2021-06-30 10:04:04 +02:00
|
|
|
dev-python/pytest-benchmark[${PYTHON_USEDEP}]
|
2021-05-21 22:01:20 +02:00
|
|
|
dev-python/pytest-flake8[${PYTHON_USEDEP}]
|
|
|
|
dev-python/pytest-isort[${PYTHON_USEDEP}]
|
|
|
|
dev-python/pytest-cov[${PYTHON_USEDEP}]
|
|
|
|
dev-python/hpack[${PYTHON_USEDEP}]
|
|
|
|
dev-python/hyperframe[${PYTHON_USEDEP}]
|
|
|
|
dev-python/hypothesis[${PYTHON_USEDEP}]
|
|
|
|
dev-python/mypy[${PYTHON_USEDEP}]
|
|
|
|
dev-python/mypy_extensions[${PYTHON_USEDEP}]
|
|
|
|
)
|
|
|
|
"
|
|
|
|
|
|
|
|
distutils_enable_tests pytest
|
2021-05-22 21:29:45 +02:00
|
|
|
distutils_enable_sphinx doc dev-python/sphinx_rtd_theme dev-python/m2r2
|
2021-05-21 22:01:20 +02:00
|
|
|
|
2021-05-22 21:29:45 +02:00
|
|
|
python_test() {
|
|
|
|
# Former requires internet access, latter fails randomly
|
|
|
|
epytest --deselect tests/async_client_test.py::TestClass::test_connect_wrapper[pyloop] --deselect tests/async_client_test.py::TestClass::test_transfer_monitor_callbacks
|
2021-05-21 22:01:20 +02:00
|
|
|
}
|