2023-02-14 02:34:39 +01:00
|
|
|
# Copyright 1999-2023 Gentoo Authors
|
2020-09-16 01:03:21 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2022-03-15 21:31:57 +01:00
|
|
|
EAPI="8"
|
2020-09-16 01:03:21 +02:00
|
|
|
|
2022-03-15 21:31:57 +01:00
|
|
|
DISTUTILS_USE_PEP517=setuptools
|
2023-01-18 10:41:48 +01:00
|
|
|
PYTHON_COMPAT=( python3_{9..11} )
|
2020-09-16 01:03:21 +02:00
|
|
|
|
2023-02-14 02:34:39 +01:00
|
|
|
inherit distutils-r1 pypi
|
2020-09-16 01:03:21 +02:00
|
|
|
|
|
|
|
DESCRIPTION="JSON-RPC 2.0 using aiohttp"
|
|
|
|
HOMEPAGE="https://github.com/pengutronix/aiohttp-json-rpc"
|
|
|
|
|
|
|
|
LICENSE="Apache-2.0"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
2020-09-22 00:06:46 +02:00
|
|
|
IUSE="test"
|
2020-09-16 01:03:21 +02:00
|
|
|
RESTRICT="!test? ( test )"
|
|
|
|
|
|
|
|
RDEPEND="
|
|
|
|
>=dev-python/aiohttp-3.5.0[${PYTHON_USEDEP}]
|
|
|
|
"
|
|
|
|
DEPEND="
|
|
|
|
${RDEPEND}
|
|
|
|
test? (
|
|
|
|
>=dev-python/pytest-aiohttp-0.3.0[${PYTHON_USEDEP}]
|
|
|
|
)
|
|
|
|
"
|
|
|
|
|
|
|
|
distutils_enable_tests pytest
|
|
|
|
|
2020-09-22 00:06:46 +02:00
|
|
|
DOCS=( README.rst )
|
2020-09-16 01:03:21 +02:00
|
|
|
|
|
|
|
python_test() {
|
|
|
|
py.test -v tests || die "Tests failed under ${EPYTHON}"
|
|
|
|
}
|