summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Müller <dev-zero@gentoo.org>2016-02-05 17:09:25 +0100
committerTiziano Müller <dev-zero@gentoo.org>2016-02-05 17:09:25 +0100
commit6c1a96064c15f70d9f8fd521cba5e7c5b33deea7 (patch)
treea076e49ff82cb53771ce8ff78621403d879049d4 /dev-python/wtforms
parentdev-python/webob: re-add python-3.3 USE flag (diff)
downloadgentoo-6c1a96064c15f70d9f8fd521cba5e7c5b33deea7.tar.gz
gentoo-6c1a96064c15f70d9f8fd521cba5e7c5b33deea7.tar.bz2
gentoo-6c1a96064c15f70d9f8fd521cba5e7c5b33deea7.zip
dev-python/wtforms: version bump to 2.1
Fix dependencies for tests and disable broken test (bug #527174). Use EAPI-6. Package-Manager: portage-2.2.26
Diffstat (limited to 'dev-python/wtforms')
-rw-r--r--dev-python/wtforms/Manifest1
-rw-r--r--dev-python/wtforms/wtforms-2.1.ebuild56
2 files changed, 57 insertions, 0 deletions
diff --git a/dev-python/wtforms/Manifest b/dev-python/wtforms/Manifest
index b49d14eff9b3..c362e7c190bf 100644
--- a/dev-python/wtforms/Manifest
+++ b/dev-python/wtforms/Manifest
@@ -1,2 +1,3 @@
DIST WTForms-2.0.1.zip 444489 SHA256 62859c74be4683601b5265ba83b9babd8a8f1cdd0ba31600fa1e70d295cd4ed2 SHA512 abae7adb1c7ab46abf401a536a248bf3703be2f0be9f5d8d49191f18855a6989e4c7acb232b006d5809fc13428a9e6214f734be5b917648778169c7dd258eaab WHIRLPOOL d6177e7f9ff5e53085081fb4580d728c08ac19230470435a85a0735745f303b010540ce01e4071735a49f32bb3321d17557511f958452457a882705c3139da9b
DIST WTForms-2.0.2.zip 449167 SHA256 10737758ceae03b53021f3aa7e81bfc8dd6f679c879ffeb5e64ac6570facb6c1 SHA512 35d52b2991588d1aef2ed7df5713f5cdd7d64affb0879ccf6b40b9194c3b9492af8f853353df55f833bec268d4332d49cf4c8e0592c21a11cccddaddb3650c52 WHIRLPOOL 7664b533174b44922e8ce733b6d284a1c8814190bab631cf094e0e7f841152502329f203e34638bb6aea2386b74a1afa7e5de09ada06188a39989f4f860e875e
+DIST WTForms-2.1.zip 553644 SHA256 ffdf10bd1fa565b8233380cb77a304cd36fd55c73023e91d4b803c96bc11d46f SHA512 2bdac0a35eca465021df9fb37dc0acd87bf487c6158b782d48870e9d5aab6ed3eb635af89bb38b9e8419688185f7c7b7875e68f7435d94bca8b074b2dddb12a0 WHIRLPOOL 91bdb0db56cc7171a87c72a0892f2e4a19ed25398f596996dcba2c4ffb0f2c61b45caeab4da48d7d43a80cccaf9ac650be936aedf61789f01ecdac6cbe657c10
diff --git a/dev-python/wtforms/wtforms-2.1.ebuild b/dev-python/wtforms/wtforms-2.1.ebuild
new file mode 100644
index 000000000000..60833d9ed447
--- /dev/null
+++ b/dev-python/wtforms/wtforms-2.1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+
+PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} pypy )
+
+inherit distutils-r1
+
+MY_PN="WTForms"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Flexible forms validation and rendering library for python web development"
+HOMEPAGE="http://wtforms.simplecodes.com/ https://pypi.python.org/pypi/WTForms"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.zip"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc test"
+
+S="${WORKDIR}/${MY_P}"
+
+RDEPEND="
+ app-arch/unzip
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? ( >=dev-python/sphinx-0.6[${PYTHON_USEDEP}] )"
+DEPEND="${RDEPEND}
+ test? (
+ dev-python/Babel[${PYTHON_USEDEP}]
+ dev-python/sqlalchemy[${PYTHON_USEDEP}]
+ dev-python/webob[${PYTHON_USEDEP}]
+ dev-python/python-dateutil[${PYTHON_USEDEP}]
+ )"
+
+python_prepare_all() {
+ # Extension-tests are written for an older version of Django
+ sed \
+ -e "s|'ext_django.tests', ||" \
+ -i tests/runtests.py || die
+ distutils-r1_python_prepare_all
+}
+
+python_compile_all() {
+ use doc && emake -C docs html
+}
+
+python_test() {
+ esetup.py test
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( docs/_build/html/. )
+ distutils-r1_python_install_all
+}