mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
gnu: Add python-django-jsonfield.
* gnu/packages/django.scm (python-django-jsonfield, python2-django-jsonfield): New variables.
This commit is contained in:
parent
01c64cb83f
commit
6c17e963b0
1 changed files with 31 additions and 0 deletions
|
@ -291,3 +291,34 @@ (define-public python-django-assets
|
|||
|
||||
(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"))))
|
||||
(build-system python-build-system)
|
||||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-before 'check 'fix-tests
|
||||
(lambda _
|
||||
(substitute* "jsonfield/tests.py"
|
||||
(("django.forms.util") "django.forms.utils")))))))
|
||||
(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))
|
||||
|
|
Loading…
Reference in a new issue