Files
guru/dev-python/aiopg/aiopg-1.4.0.ebuild
Anna (cybertailor) Vyalkova 33966e1fb2 dev-python/aiopg: add 1.4.0, drop 1.3.3
Closes: https://bugs.gentoo.org/856379
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-11-03 06:12:53 +05:00

49 lines
1.0 KiB
Bash

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..11} )
DISTUTILS_USE_PEP517=setuptools
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}.gh.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/async-timeout[${PYTHON_USEDEP}]
dev-python/psycopg:2[${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
}