Files
guru/dev-python/aiopg/aiopg-1.3.3.ebuild
Anna (cybertailor) Vyalkova 8e818f5f95 dev-python/aiopg: add 1.3.3, drop 1.2.1
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2021-12-14 12:02:24 +05:00

46 lines
984 B
Bash

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1 optfeature
MY_PV=${PV/_beta/b}
DESCRIPTION="Postgres integration with asyncio"
HOMEPAGE="
https://aiopg.readthedocs.io
https://github.com/aio-libs/aiopg
"
SRC_URI="https://github.com/aio-libs/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${MY_PV}"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
# tests use docker containers -- that's wild!
RESTRICT="test"
RDEPEND="dev-python/psycopg[${PYTHON_USEDEP}]"
DEPEND="test? (
dev-python/docker-py[${PYTHON_USEDEP}]
dev-python/pytest-timeout[${PYTHON_USEDEP}]
dev-python/sqlalchemy[${PYTHON_USEDEP}]
)"
DOCS=( CHANGES.txt README.rst )
distutils_enable_tests pytest
distutils_enable_sphinx docs dev-python/sphinxcontrib-asyncio
python_test() {
epytest --no-pull
}
pkg_postinst() {
optfeature "sqlalchemy support" dev-python/sqlalchemy
}