summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pymongo')
-rw-r--r--dev-python/pymongo/pymongo-3.10.1.ebuild28
1 files changed, 13 insertions, 15 deletions
diff --git a/dev-python/pymongo/pymongo-3.10.1.ebuild b/dev-python/pymongo/pymongo-3.10.1.ebuild
index be2abc3cb002..e29624b5f6c5 100644
--- a/dev-python/pymongo/pymongo-3.10.1.ebuild
+++ b/dev-python/pymongo/pymongo-3.10.1.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-PYTHON_COMPAT=( python2_7 python3_{6,7,8} )
+PYTHON_COMPAT=( python2_7 python3_{6..9} )
inherit check-reqs distutils-r1
DESCRIPTION="Python driver for MongoDB"
@@ -14,14 +14,12 @@ LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 arm64 ~hppa x86"
IUSE="doc kerberos test"
-
RESTRICT="!test? ( test )"
RDEPEND="
kerberos? ( dev-python/pykerberos[${PYTHON_USEDEP}] )
"
-DEPEND="${RDEPEND}
- doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+BDEPEND="
test? (
>=dev-db/mongodb-2.6.0
dev-python/nose[${PYTHON_USEDEP}]
@@ -29,6 +27,8 @@ DEPEND="${RDEPEND}
"
DISTUTILS_IN_SOURCE_BUILD=1
+distutils_enable_sphinx doc
+
reqcheck() {
if use test; then
# During the tests, database size reaches 1.5G.
@@ -46,11 +46,15 @@ pkg_setup() {
reqcheck pkg_setup
}
-python_compile_all() {
- if use doc; then
- mkdir html || die
- sphinx-build doc html || die
- fi
+src_prepare() {
+ # network-sandbox probably
+ rm test/test_srv_polling.py || die
+ sed -e 's:test_connection_timeout_ms_propagates_to_DNS_resolver:_&:' \
+ -i test/test_client.py || die
+ # relies on exact exception message
+ sed -e 's:abstract methods:abstract:' \
+ -i test/test_custom_types.py || die
+ distutils-r1_src_prepare
}
python_test() {
@@ -111,9 +115,3 @@ python_test() {
rm -rf "${dbpath}" || die
}
-
-python_install_all() {
- use doc && local HTML_DOCS=( html/. )
-
- distutils-r1_python_install_all
-}