mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-12-16 15:25:53 +01:00
python-flask-wtf: update to version 0.14.2
Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
parent
91a32418bd
commit
83b097cc3b
|
|
@ -1,16 +1,15 @@
|
||||||
DESCRIPTION = "Simple integration of Flask and WTForms."
|
DESCRIPTION = "Simple integration of Flask and WTForms."
|
||||||
LICENSE = "BSD"
|
LICENSE = "BSD"
|
||||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=507e8635f25a06dc4f041a3a1b3359b3"
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=3ca6bb31670492f791e6a9f2fb9f8a80"
|
||||||
|
|
||||||
SRC_URI[md5sum] = "c53a74e8ba481bf53405fd5efdf0339e"
|
SRC_URI[md5sum] = "586f50f233926cade42e3d744aca3e8f"
|
||||||
SRC_URI[sha256sum] = "bd99316c97ed1d1cb90b8f0c242c86420a891a6a2058f20717e424bf5b0bb80e"
|
SRC_URI[sha256sum] = "5d14d55cfd35f613d99ee7cba0fc3fbbe63ba02f544d349158c14ca15561cc36"
|
||||||
|
|
||||||
FILESEXTRAPATHS_prepend := "${THISDIR}/python-flask-wtf:"
|
|
||||||
SRC_URI += " file://import-simplejson-as-json.patch"
|
|
||||||
|
|
||||||
PYPI_PACKAGE = "Flask-WTF"
|
PYPI_PACKAGE = "Flask-WTF"
|
||||||
|
|
||||||
RDEPENDS_${PN} = "\
|
RDEPENDS_${PN} = "\
|
||||||
|
${PYTHON_PN}-flask \
|
||||||
|
${PYTHON_PN}-itsdangerous \
|
||||||
|
${PYTHON_PN}-json \
|
||||||
${PYTHON_PN}-wtforms \
|
${PYTHON_PN}-wtforms \
|
||||||
${PYTHON_PN}-simplejson \
|
|
||||||
"
|
"
|
||||||
|
|
|
||||||
|
|
@ -1,28 +0,0 @@
|
||||||
Upstream-Status: Inappropriate [configuration]
|
|
||||||
|
|
||||||
Subject: [PATCH] import simplejson as json
|
|
||||||
|
|
||||||
At runtime python-Flask-WTF tries to import json, but the module is not
|
|
||||||
available, import simplejson as json solve the issue.
|
|
||||||
|
|
||||||
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
|
|
||||||
---
|
|
||||||
flask_wtf/recaptcha/validators.py | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/flask_wtf/recaptcha/validators.py b/flask_wtf/recaptcha/validators.py
|
|
||||||
index bcff23d..4a244bb 100644
|
|
||||||
--- a/flask_wtf/recaptcha/validators.py
|
|
||||||
+++ b/flask_wtf/recaptcha/validators.py
|
|
||||||
@@ -8,7 +8,7 @@ from flask import request, current_app
|
|
||||||
from wtforms import ValidationError
|
|
||||||
from werkzeug import url_encode
|
|
||||||
from .._compat import to_bytes, to_unicode
|
|
||||||
-import json
|
|
||||||
+import simplejson as json
|
|
||||||
|
|
||||||
RECAPTCHA_VERIFY_SERVER = 'https://www.google.com/recaptcha/api/siteverify'
|
|
||||||
RECAPTCHA_ERROR_CODES = {
|
|
||||||
--
|
|
||||||
2.1.4
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user