summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-11-21 08:51:23 +0100
committerMichał Górny <mgorny@gentoo.org>2020-11-21 08:52:11 +0100
commit0f3b90afbcbd533b5fea642b56f53b4727e95b62 (patch)
treed1aeafbb9aff7f77655d1210beb3de62b5d048e7 /dev-python/flask-mongoengine
parentdev-python/boto3: Bump to 1.16.23 (diff)
downloadgentoo-0f3b90afbcbd533b5fea642b56f53b4727e95b62.tar.gz
gentoo-0f3b90afbcbd533b5fea642b56f53b4727e95b62.tar.bz2
gentoo-0f3b90afbcbd533b5fea642b56f53b4727e95b62.zip
dev-python/flask-mongoengine: Bump to 1.0.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/flask-mongoengine')
-rw-r--r--dev-python/flask-mongoengine/Manifest1
-rw-r--r--dev-python/flask-mongoengine/flask-mongoengine-1.0.0.ebuild36
2 files changed, 37 insertions, 0 deletions
diff --git a/dev-python/flask-mongoengine/Manifest b/dev-python/flask-mongoengine/Manifest
index 8219285ce808..5082bdcff310 100644
--- a/dev-python/flask-mongoengine/Manifest
+++ b/dev-python/flask-mongoengine/Manifest
@@ -1 +1,2 @@
DIST flask-mongoengine-0.9.5.gh.tar.gz 120281 BLAKE2B 454602e7e7f26db731379b01492c6cb1adf01369fd268236407c57753aeb68f17ce62d4c2e665e493d3c7c632e4f263af02b59e6580893afcc7b8659247fb42f SHA512 3588ae25e2f3643f5e240990f424b4f3754cea2f880b7b454c98afb3ea98fd81b783d74a45cf685fe59cfa8159b1ac39e840071f364ce98fb1a25cc9a09e0d5f
+DIST flask-mongoengine-1.0.0.gh.tar.gz 123516 BLAKE2B 5dd6cf1d774973ef1883d824bdf467b53306773eff5f7016f6440a7ec55648012755a1270b8fca0974aff00dfb189c0f3f7d6985a01c098729517c0018513c8b SHA512 bd95a8248a972a41c92dc2711f866420aabba56062322801e473e0b347c95ad47da39439992ba6cf23a0981c422ae84756af3af95d1171acd6b321f9cbc63085
diff --git a/dev-python/flask-mongoengine/flask-mongoengine-1.0.0.ebuild b/dev-python/flask-mongoengine/flask-mongoengine-1.0.0.ebuild
new file mode 100644
index 000000000000..37bd9cae8e24
--- /dev/null
+++ b/dev-python/flask-mongoengine/flask-mongoengine-1.0.0.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6..9} )
+inherit distutils-r1
+
+DESCRIPTION="Flask support for MongoDB and with WTF model forms"
+HOMEPAGE="https://pypi.org/project/flask-mongoengine/"
+SRC_URI="
+ https://github.com/MongoEngine/flask-mongoengine/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+# TODO: make it spawn a local mongodb instance
+RESTRICT="test"
+
+RDEPEND=">=dev-python/flask-1.1.2[${PYTHON_USEDEP}]
+ >=dev-python/mongoengine-0.20[${PYTHON_USEDEP}]
+ >=dev-python/flask-wtf-0.14.3[${PYTHON_USEDEP}]"
+
+distutils_enable_sphinx docs
+distutils_enable_tests pytest
+
+python_prepare_all() {
+ sed -i -e '/addopts/d' setup.cfg || die
+
+ # fails with mongomock installed
+ sed -e 's:test_connection__should_parse_mongo_mock_uri:_&:' \
+ -i tests/test_connection.py || die
+
+ distutils-r1_python_prepare_all
+}