blob: 3cafad7d790144672fb13389aa1947720c42d2c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_7 )
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}]"
DEPEND="test? (
dev-python/coverage[${PYTHON_USEDEP}]
dev-python/tox[${PYTHON_USEDEP}]
dev-python/isort[${PYTHON_USEDEP}]
dev-python/pytest-timeout[${PYTHON_USEDEP}]
dev-python/sqlalchemy[${PYTHON_USEDEP}]
dev-python/flake8[${PYTHON_USEDEP}] )"
pkg_postinst() {
optfeature "sqlalchemy support" dev-python/sqlalchemy
}
distutils_enable_tests pytest
distutils_enable_sphinx docs dev-python/sphinxcontrib-asyncio
|