[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/2] gnu: add python-django-simple-math-captcha
From: |
Hartmut Goebel |
Subject: |
[PATCH 2/2] gnu: add python-django-simple-math-captcha |
Date: |
Mon, 22 Aug 2016 13:31:37 +0200 |
* 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(+)
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)))
--
2.7.4