diff mbox

[2/2] gnu: add python-django-simple-math-captcha

Message ID 1471865497-7324-3-git-send-email-h.goebel@crazy-compilers.com
State New
Headers show

Commit Message

Hartmut Goebel Aug. 22, 2016, 11:31 a.m. UTC
* gnu/packages/django.scm: (python-django-simple-math-captcha,
  python2-django-simple-math-captcha) New variables.
---
 gnu/packages/django.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

Comments

Ludovic Courtès Sept. 12, 2016, 1:31 p.m. UTC | #1
Hartmut Goebel <h.goebel@crazy-compilers.com> skribis:

> * gnu/packages/django.scm: (python-django-simple-math-captcha,
>   python2-django-simple-math-captcha) New variables.

Pushed with cosmetic changes as
b53fc2940fefc3829695f239f731ee6f03e538a2.

Thanks!

Ludo’.
diff mbox

Patch

diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index ec3f25f..7e910da 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -108,3 +108,31 @@  DRY principle.")
          ("python2-mock" ,python2-mock)
          ; when adding memcached mind: for Python 2 memcached <= 1.53 is required
          ,@(package-native-inputs base))))))
+
+(define-public python-django-simple-math-captcha
+  (package
+    (name "python-django-simple-math-captcha")
+    (version "1.0.7")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "django-simple-math-captcha" version))
+       (sha256
+        (base32
+         "0906hms6y6znjhpd0g4wmzv9vcla4brkdpsm4zha9zdj8g5vq2hd"))))
+    (build-system python-build-system)
+    (inputs
+     `(("python-django" ,python-django)))
+    (native-inputs
+     `(("python-setuptools" ,python-setuptools)))
+    (home-page "https://github.com/alsoicode/django-simple-math-captcha")
+    (synopsis "Easy-to-use math field/widget captcha for Django forms")
+    (description
+    "A multi-value-field that presents a human answerable question,
+with no settings.py configuration necessary, but instead can be configured
+with arguments to the field constructor.")
+    (license license:asl2.0)
+    (properties `((python2-variant . ,(delay python2-django-simple-math-captcha))))))
+
+(define-public python2-django-simple-math-captcha
+  (package-with-python2 (strip-python2-variant python-django-simple-math-captcha)))