Patchwork [01/11] gnu: Add python-flask-wtf.

login
register
mail settings
Submitter ng0
Date Dec. 14, 2016, 12:25 p.m.
Message ID <20161214122526.4458-2-ng0@libertad.pw>
Download mbox | patch
Permalink /patch/18441/
State New
Headers show

Comments

ng0 - Dec. 14, 2016, 12:25 p.m.
* gnu/packages/python.scm (python-flask-wtf): New variable.
---
 gnu/packages/python.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

Patch

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 6d6d880bb..763e452f1 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -9236,6 +9236,33 @@  presume or force a developer to use a particular tool or library.")
 (define-public python2-flask
   (package-with-python2 python-flask))
 
+(define-public python-flask-wtf
+  (package
+    (name "python-flask-wtf")
+    (version "0.13.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "Flask-WTF" version))
+       (sha256
+        (base32
+         "04l5743j2dici46038sqlzvf0xzpg8rf7s9ld2x24xv7f4idg990"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-flask-babel" ,python-flask-babel)))
+    (native-inputs
+     `(("python-nose" ,python-nose)
+       ("python-wtforms" ,python-wtforms)))
+  (home-page "https://github.com/lepture/flask-wtf")
+  (synopsis "Simple integration of Flask and WTForms")
+  (description
+   "Simple integration of Flask and WTForms, including CSRF,
+file upload, and reCAPTCHA.")
+  (license license:bsd-3)))
+
+(define-public python2-flask-wtf
+  (package-with-python2 python-flask-wtf))
+
 (define-public python-cookies
   (package
     (name "python-cookies")