38 lines
754 B
Bash
38 lines
754 B
Bash
# Copyright 2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI="7"
|
|
|
|
PYTHON_COMPAT=( python3_8 )
|
|
DISTUTILS_USE_SETUPTOOLS="bdepend"
|
|
|
|
inherit distutils-r1
|
|
|
|
DESCRIPTION="asyncio bridge to the standard sqlite3 module"
|
|
HOMEPAGE="https://github.com/jreese/aiosqlite"
|
|
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="Apache-2.0"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="doc test"
|
|
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
|
|
|
|
DOCS=( CHANGELOG.md README.md )
|
|
|
|
python_test() {
|
|
py.test -v tests || die "Tests failed under ${EPYTHON}"
|
|
}
|