gnu: Add python-django-redis.

* gnu/packages/django.scm (python-django-redis, python2-django-redis):
New variables.
master
Julien Lepiller 2017-04-23 16:54:53 +02:00
parent 91154d4a40
commit b939953b9a
No known key found for this signature in database
GPG Key ID: 43111F4520086A0C
1 changed files with 38 additions and 0 deletions

View File

@ -25,6 +25,7 @@
#:use-module (guix build-system python)
#:use-module (gnu packages)
#:use-module (gnu packages base)
#:use-module (gnu packages databases)
#:use-module (gnu packages python))
(define-public python-django
@ -471,3 +472,40 @@ project.")
(define-public python2-django-overextends
(package-with-python2 python-django-overextends))
(define-public python-django-redis
(package
(name "python-django-redis")
(version "4.7.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "django-redis" version))
(sha256
(base32
"0yyyxv8n9l9dhs893jsqwg2cxqkkc79g719n9dzzzqgkzialv1c1"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(and (zero? (system* "redis-server" "--daemonize" "yes"))
(with-directory-excursion "tests"
(zero? (system* "python" "runtests.py")))))))))
(native-inputs
`(("python-fakeredis" ,python-fakeredis)
("python-hiredis" ,python-hiredis)
("python-mock" ,python-mock)
("python-msgpack" ,python-msgpack)
("redis" ,redis)))
(propagated-inputs
`(("python-django" ,python-django)
("python-redis" ,python-redis)))
(home-page "https://github.com/niwibe/django-redis")
(synopsis "Full featured redis cache backend for Django")
(description
"Full featured redis cache backend for Django.")
(license license:bsd-3)))
(define-public python2-django-redis
(package-with-python2 python-django-redis))