mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-17 19:13:13 -04:00
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>
This commit is contained in:
48
dev-python/aiopg/aiopg-1.4.0.ebuild
Normal file
48
dev-python/aiopg/aiopg-1.4.0.ebuild
Normal file
@@ -0,0 +1,48 @@
|
||||
# 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
|
||||
}
|
||||
Reference in New Issue
Block a user