1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python3_6 )
9 if [[ ${PV} == *9999* ]]; then
13 DESCRIPTION="A SQLAlchemy dialect for rqlite"
14 EGIT_REPO_URI="https://github.com/rqlite/sqlalchemy-rqlite.git"
15 HOMEPAGE="https://github.com/rqlite/sqlalchemy-rqlite"
16 SRC_URI="${EGIT_REPO_URI%.git}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
20 KEYWORDS="~amd64 ~x86"
22 RESTRICT="!test? ( test )"
24 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
25 dev-python/pyrqlite[${PYTHON_USEDEP}]
26 dev-python/sqlalchemy[${PYTHON_USEDEP}]
28 dev-python/pytest[${PYTHON_USEDEP}]
29 dev-python/pytest-cov[${PYTHON_USEDEP}]
30 dev-python/pylint[${PYTHON_USEDEP}]
34 sed -e "s:^__version__ = .*:__version__ = '${PV}':" -i src/sqlalchemy_rqlite/constants.py || die
35 distutils-r1_src_prepare
39 esetup.py test || die "tests failed"
40 esetup.py lint -f text -E || die "pylint failed"