[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnu: Add python-wtforms.
From: |
Christopher Allan Webber |
Subject: |
Re: gnu: Add python-wtforms. |
Date: |
Sat, 13 Feb 2016 14:57:29 -0800 |
User-agent: |
mu4e 0.9.13; emacs 24.5.1 |
Leo Famulari writes:
> On Sat, Feb 13, 2016 at 01:55:01PM -0800, Christopher Allan Webber wrote:
>> Christopher Allan Webber writes:
>
> [...]
>
>> >>> * gnu/packages/python.scm (python-wtforms, python2-wtforms): New
>> >>> variables.
>> >>
>> >> It looks good to me, but I wonder if the python-3 variant really needs
>> >> setuptools? If so, okay. If not, can you use the new python2-variant
>> >> system [0] to provide setuptools for python2-wtforms?
>> >>
>> >> [0] Introduced in 48b311b1b3ba
>> >
>> > Okay, I'll give that a try, and will make an adjustment if appropriate,
>> > and regardless, push after figuring that out.
>> >
>> > Thanks to both of you!
>>
>> Well, I think it's significant enough of a change where I should get
>> some validation that everything looks right before I push. New version,
>> ahoy! Is it ok?
>
> I believe that you still must call 'package-with-python2' in the
> python-2 variant, and the argument to that should be
> (strip-python2-variant python-foo).
>
> I've attached an example commit that seems to work, from one of my WIP
> branches.
Ah, you're right! New patch!
- Chris
>From 6d3d18425409a738b6e341d9f1640f048a12300a Mon Sep 17 00:00:00 2001
From: Christopher Allan Webber <address@hidden>
Date: Sat, 13 Feb 2016 13:42:51 -0800
Subject: [PATCH] gnu: Add python-wtforms
* gnu/packages/python.scm (python-wtforms, python2-wtforms): New variables.
---
gnu/packages/python.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 3758eed..c9aabc8 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -7509,3 +7509,33 @@ input. (Note that this is mostly a legacy library; you
may wish to look at
python-xdo for newer bindings.)")
(license bsd-3)))
+(define-public python-wtforms
+ (package
+ (name "python-wtforms")
+ (version "2.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "WTForms" version ".zip"))
+ (sha256
+ (base32
+ "0vyl26y9cg409cfyj8rhqxazsdnd0jipgjw06civhrd53yyi1pzz"))))
+ (build-system python-build-system)
+ (native-inputs
+ `(("unzip" ,unzip)))
+ (home-page "http://wtforms.simplecodes.com/")
+ (synopsis
+ "Form validation and rendering library for Python web development")
+ (description
+ "WTForms is a flexible forms validation and rendering library
+for Python web development. It is very similar to the web form API
+available in Django, but is a standalone package.")
+ (license bsd-3)
+ (properties `((python2-variant . ,(delay python2-wtforms))))))
+
+(define-public python2-wtforms
+ (package
+ (inherit (package-with-python2
+ (strip-python2-variant python-wtforms)))
+ (name "python2-wtforms")
+ (inputs `(("python2-setuptools" ,python2-setuptools)))))
--
2.6.3
Re: gnu: Add python-wtforms., Leo Famulari, 2016/02/12