diff options
author | Julien Lepiller <julien@lepiller.eu> | 2017-04-22 18:51:24 +0200 |
---|---|---|
committer | Julien Lepiller <julien@lepiller.eu> | 2017-05-11 21:57:59 +0200 |
commit | 03a34e87b8a1e808792c93f3af52e32479353838 (patch) | |
tree | 173be9218d4ae3ac0b4e653f20ae8bc159ecae62 /gnu | |
parent | afbfe564977300133e3a48bdedb4cb37a57121d8 (diff) | |
download | guix-03a34e87b8a1e808792c93f3af52e32479353838.tar.gz guix-03a34e87b8a1e808792c93f3af52e32479353838.zip |
gnu: Add python-django-contact-form.
* gnu/packages/django.scm (python-django-contact-form, python2-django-contact-form):
New variables.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/django.scm | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index 6190c85330..c1deac89b9 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -377,3 +377,38 @@ project aims to bulk update given objects using one query over Django ORM.") (define-public python2-django-bulk-update (package-with-python2 python-django-bulk-update)) + +(define-public python-django-contact-form + (package + (name "python-django-contact-form") + (version "1.3") + (source (origin + (method url-fetch) + (uri (pypi-uri "django-contact-form" version)) + (sha256 + (base32 + "0az590y56k5ahv4sixrkn54d3a8ig2q2z9pl6s3m4f533mx2gj17")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + ;; the next version will need "make test" + (and (zero? (system* "flake8" "contact_form")) + (zero? (system* "coverage" "run" "contact_form/runtests.py")) + (zero? (system* "coverage" "report" "-m" "--fail-under" "0")))))))) + (native-inputs + `(("python-coverage" ,python-coverage) + ("python-flake8" ,python-flake8))) + (propagated-inputs + `(("python-django" ,python-django))) + (home-page "https://github.com/ubernostrum/django-contact-form") + (synopsis "Contact form for Django") + (description + "This application provides simple, extensible contact-form functionality +for Django sites.") + (license license:bsd-3))) + +(define-public python2-django-contact-form + (package-with-python2 python-django-contact-form)) |