summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Sautier <sautier.louis@gmail.com>2016-04-17 20:40:50 +0200
committerIan Delaney <idella4@gentoo.org>2016-04-18 17:06:06 +0800
commit734e78442c691ff86afaf9b8016a82816d9f2b2c (patch)
treeb9e9f9353b5153e29672096fb35f2a00f62ea997 /dev-python/flask-wtf
parentdev-python/flask-uploads: add Python 3.5 support, fix tests (diff)
downloadgentoo-734e78442c691ff86afaf9b8016a82816d9f2b2c.tar.gz
gentoo-734e78442c691ff86afaf9b8016a82816d9f2b2c.tar.bz2
gentoo-734e78442c691ff86afaf9b8016a82816d9f2b2c.zip
dev-python/flask-wtf: add python 3 support, fix tests, trim description
Package-Manager: portage-2.2.28 Closes: https://github.com/gentoo/gentoo/pull/1293 Signed-off-by: Ian Delaney <idella4@gentoo.org>
Diffstat (limited to 'dev-python/flask-wtf')
-rw-r--r--dev-python/flask-wtf/flask-wtf-0.12.ebuild17
-rw-r--r--dev-python/flask-wtf/metadata.xml5
2 files changed, 15 insertions, 7 deletions
diff --git a/dev-python/flask-wtf/flask-wtf-0.12.ebuild b/dev-python/flask-wtf/flask-wtf-0.12.ebuild
index 94a4bb8cbf49..86c6da4634cc 100644
--- a/dev-python/flask-wtf/flask-wtf-0.12.ebuild
+++ b/dev-python/flask-wtf/flask-wtf-0.12.ebuild
@@ -1,19 +1,16 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-EAPI=5
-PYTHON_COMPAT=( python2_7 pypy )
-
-# silly captcha test trying to access things over the network
-RESTRICT="test"
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_4,3_5} pypy )
inherit distutils-r1
MY_PN="Flask-WTF"
MY_P="${MY_PN}-${PV}"
-DESCRIPTION="Simple integration of Flask and WTForms, including CSRF, file upload and Recaptcha integration"
+DESCRIPTION="Simple integration of Flask and WTForms"
HOMEPAGE="http://pythonhosted.org/Flask-WTF/ https://pypi.python.org/pypi/Flask-WTF"
SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
@@ -38,6 +35,12 @@ DEPEND="${RDEPEND}
S="${WORKDIR}/${MY_P}"
+python_prepare_all() {
+ # tries to access things over the network
+ rm tests/test_recaptcha.py || die
+ distutils-r1_python_prepare_all
+}
+
python_compile_all() {
use doc && emake -C docs html
}
diff --git a/dev-python/flask-wtf/metadata.xml b/dev-python/flask-wtf/metadata.xml
index 5b24bd570299..39cf0b536952 100644
--- a/dev-python/flask-wtf/metadata.xml
+++ b/dev-python/flask-wtf/metadata.xml
@@ -7,5 +7,10 @@
</maintainer>
<upstream>
<remote-id type="pypi">Flask-WTF</remote-id>
+ <remote-id type="github">lepture/flask-wtf</remote-id>
+ <bugs-to>https://github.com/lepture/flask-wtf</bugs-to>
</upstream>
+ <longdescription lang="en">
+ Simple integration of Flask and WTForms, including CSRF, file upload and Recaptcha integration.
+ </longdescription>
</pkgmetadata>