>From 1da250281f8a13d29bbd7c062ef7c708adff3324 Mon Sep 17 00:00:00 2001 From: Julien Lepiller
Date: Sat, 22 Apr 2017 18:18:30 +0200 Subject: [PATCH 21/34] gnu: Add python-django-jsonfield. * gnu/packages/django.scm (python-django-jsonfield, python2-django-jsonfield): 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 52668aa3c..e259a75b5 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -288,3 +288,31 @@ merging, minifying and compiling CSS and Javascript files.") (define-public python2-django-assets (package-with-python2 python-django-assets)) + +(define-public python-django-jsonfield + (package + (name "python-django-jsonfield") + (version "1.0.3") + (source (origin + (method url-fetch) + (uri (pypi-uri "jsonfield" version)) + (sha256 + (base32 + "19x4lak0hg9c20r7mvf27w7i8r6i4sg2g0ypmlmp2665fnk76zvy")) + (modules '((guix build utils))) + (snippet + '(substitute* "jsonfield/tests.py" + (("django.forms.util") "django.forms.utils"))))) + (build-system python-build-system) + (propagated-inputs + `(("python-django" ,python-django))) + (home-page "https://github.com/bradjasper/django-jsonfield") + (synopsis "Store validated JSON in your model") + (description + "django-jsonfield is a reusable Django field that allows you to store +validated JSON in your model. It silently takes care of serialization. To +use, simply add the field to one of your models.") + (license license:expat))) + +(define-public python2-django-jsonfield + (package-with-python2 python-django-jsonfield)) -- 2.12.2