2021-06-01 12:26:01 +02:00
|
|
|
# Copyright 1999-2021 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
|
2021-07-27 18:38:29 +02:00
|
|
|
PYTHON_COMPAT=( python3_9 )
|
2020-09-16 01:03:21 +02:00
|
|
|
|
|
|
|
inherit distutils-r1
|
|
|
|
|
|
|
|
DESCRIPTION="JSON-RPC 2.0 using aiohttp"
|
|
|
|
HOMEPAGE="https://github.com/pengutronix/aiohttp-json-rpc"
|
2021-06-01 12:26:01 +02:00
|
|
|
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
2020-09-16 01:03:21 +02:00
|
|
|
|
|
|
|
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}"
|
|
|
|
}
|