aiopg-1.4.0.ebuild

This commit is contained in:
Anton Bolshakov 2022-12-14 18:23:29 +08:00
parent a6a1e9c0b1
commit 28c47a42ac
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
3 changed files with 41 additions and 0 deletions

View file

@ -1 +1,2 @@
DIST aiopg-1.2.1.tar.gz 197099 BLAKE2B 3c4300724da13d6f9d439a31a0fad02361eb3f95fde90abd4718a2298d291f760e2a4a2c15691cd90a2996c101759422bb372202768f43b2ad6923c4921d1387 SHA512 19c00a77cbf8bc60c7704bcc17f9baab6ec1b0554dc62c1bf8fbd4f97f56636fc5edf9479da5a9c27dfc06108c9d650b3fe5d2cddca445f1ffa7b18cbc1d896c
DIST aiopg-1.4.0.tar.gz 202204 BLAKE2B 9f4dda868c919aef05e58608b353d51f0526ef1f847e8da8f4f11e75264a47b9eb4d948a87d591e66baf7052c00706b8f4cb6befd6bf33668987cfbfad451afc SHA512 cbb28b0b15eb89fa3162e59e3e88dac18bddbad3d95458b5c3eb487d15767c26810e941f83c3478cac8a8a085b23723690c8d294bf6aac433a14c3defcef1138

View file

@ -0,0 +1,39 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1 optfeature
DESCRIPTION="aiopg is a library for accessing a PostgreSQL database from the asyncio"
HOMEPAGE="
https://aiopg.readthedocs.io
https://github.com/aio-libs/aiopg
"
SRC_URI="https://github.com/aio-libs/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
# tests seem to be wanting to send/recieve things
# which is probably not allowed inside emerge so they fail?
RESTRICT="test"
RDEPEND="dev-python/psycopg[${PYTHON_USEDEP}]
dev-python/psycopgasync-timeout[${PYTHON_USEDEP}]
"
DEPEND="test? (
dev-python/pytest-timeout[${PYTHON_USEDEP}]
dev-python/sqlalchemy[${PYTHON_USEDEP}]
)"
pkg_postinst() {
optfeature "sqlalchemy support" dev-python/sqlalchemy
}
distutils_enable_tests pytest
distutils_enable_sphinx docs dev-python/sphinxcontrib-asyncio

View file

@ -20,6 +20,7 @@ __email__ = "blshkv@pentoo.ch"
def portage_mapping(search):
mapping = {
"dev-python/androguard": "dev-util/androguard",
"dev-python/async_timeout": "dev-python/async-timeout",
"dev-python/Brotli": "app-arch/brotli[python]",
"dev-python/bs4": "dev-python/beautifulsoup4",
"dev-python/capstone": "dev-libs/capstone[python]",