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

2016-12-21 Thread ng0
* gnu/packages/python.scm (python-flask-wtf): New variable.
---
 gnu/packages/python.scm | 28 
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index bfa7eae55..0e5966336 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -9219,6 +9219,34 @@ 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)
+   ("python-babel" ,python-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")
-- 
2.11.0




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

2016-12-20 Thread Danny Milosavljevic
Since flask-WTF directly imports flask, this package should also propagate 
flask.



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

2016-12-19 Thread ng0
* gnu/packages/python.scm (python-flask-wtf): New variable.
---
 gnu/packages/python.scm | 27 +++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 76e6ac165..5a7c2a0ca 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -9219,6 +9219,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")
-- 
2.11.0




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

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

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")
-- 
2.11.0




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

2016-12-12 Thread Hartmut Goebel
Am 12.12.2016 um 00:05 schrieb ng0:
> Yeah I need to make my notes about the new python system.. I had
> everything propagated now.. which is false it seems.

We could add nose to the lint checkers, should we?

-- 
Regards
Hartmut Goebel

| Hartmut Goebel  | h.goe...@crazy-compilers.com   |
| www.crazy-compilers.com | compilers which you thought are impossible |




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

2016-12-12 Thread Hartmut Goebel
Am 12.12.2016 um 00:22 schrieb Leo Famulari:
> My understanding is that everything used at run-time should be
> propagated, but things used only while building are still native-inputs.

That's it :-)

-- 
Regards
Hartmut Goebel

| Hartmut Goebel  | h.goe...@crazy-compilers.com   |
| www.crazy-compilers.com | compilers which you thought are impossible |




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

2016-12-11 Thread ng0
Leo Famulari  writes:

> On Sun, Dec 11, 2016 at 06:12:27PM +, ng0 wrote:
>> * gnu/packages/python.scm (python-flask-wtf): New variable.
>
>> +(propagated-inputs
>> + `(("python-flask-babel" ,python-flask-babel)
>> +   ("python-nose" ,python-nose)))
>
> Nose is a tool for running unit tests. Should python-nose be a
> native-input here?
>
> Also, I noticed the test suite failed because python-wtforms was not
> available.
>

Ah, thanks.
Yeah I need to make my notes about the new python system.. I had
everything propagated now.. which is false it seems.
-- 
♥Ⓐ  ng0  | ng0.chaosnet.org



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

2016-12-11 Thread Leo Famulari
On Sun, Dec 11, 2016 at 06:12:27PM +, ng0 wrote:
> * gnu/packages/python.scm (python-flask-wtf): New variable.

> +(propagated-inputs
> + `(("python-flask-babel" ,python-flask-babel)
> +   ("python-nose" ,python-nose)))

Nose is a tool for running unit tests. Should python-nose be a
native-input here?

Also, I noticed the test suite failed because python-wtforms was not
available.



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

2016-12-11 Thread ng0
* gnu/packages/python.scm (python-flask-wtf): New variable.
---
 gnu/packages/python.scm | 25 +
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index c46d51724..d9796b8e5 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -9191,6 +9191,31 @@ 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)
+   ("python-nose" ,python-nose)))
+  (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")
-- 
2.11.0