From 05b8b0e0af1d72e51a3ee61522941bf7605cd01c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 4 Jul 2020 14:05:23 +0100 Subject: gentoo resync : 04.07.2020 --- .../flask-mongoengine-0.9.5.ebuild | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 dev-python/flask-mongoengine/flask-mongoengine-0.9.5.ebuild (limited to 'dev-python/flask-mongoengine/flask-mongoengine-0.9.5.ebuild') diff --git a/dev-python/flask-mongoengine/flask-mongoengine-0.9.5.ebuild b/dev-python/flask-mongoengine/flask-mongoengine-0.9.5.ebuild new file mode 100644 index 000000000000..b135ef5e0f36 --- /dev/null +++ b/dev-python/flask-mongoengine/flask-mongoengine-0.9.5.ebuild @@ -0,0 +1,41 @@ +# 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-0.8[${PYTHON_USEDEP}] + >=dev-python/mongoengine-0.7.10[${PYTHON_USEDEP}] + dev-python/flask-wtf[${PYTHON_USEDEP}]" + +distutils_enable_sphinx docs +distutils_enable_tests nose + +python_prepare_all() { + sed -i -e '/test_requirements/d' setup.py || die + sed -i -e '/rednose/d' setup.cfg || die + + # TODO: investigate; new pymongo, wtforms? + sed -e 's:test_connection_default:_&:' \ + -i tests/test_basic_app.py || die + sed -e 's:test_unique_with:_&:' \ + -i tests/test_forms.py || die + sed -e 's:test_mongomock:_&:' \ + -i tests/test_connection.py || die + + distutils-r1_python_prepare_all +} -- cgit v1.2.3