[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
29/36: gnu: Add python-django-redis.
From: |
julien lepiller |
Subject: |
29/36: gnu: Add python-django-redis. |
Date: |
Thu, 11 May 2017 16:01:31 -0400 (EDT) |
roptat pushed a commit to branch master
in repository guix.
commit b939953b9a415d450dd8d3906114e67bf7ecad5c
Author: Julien Lepiller <address@hidden>
Date: Sun Apr 23 16:54:53 2017 +0200
gnu: Add python-django-redis.
* gnu/packages/django.scm (python-django-redis, python2-django-redis):
New variables.
---
gnu/packages/django.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index 129aa25..eeccfcc 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -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))
- 27/36: gnu: Add python-hiredis., (continued)
- 27/36: gnu: Add python-hiredis., julien lepiller, 2017/05/11
- 31/36: gnu: Add python-django-sortedm2m., julien lepiller, 2017/05/11
- 33/36: gnu: Add python-django-statici18n., julien lepiller, 2017/05/11
- 34/36: gnu: python-pytest-django: Update to 3.1.2., julien lepiller, 2017/05/11
- 21/36: gnu: Add python-django-jsonfield., julien lepiller, 2017/05/11
- 23/36: gnu: Add python-django-bulk-update., julien lepiller, 2017/05/11
- 11/36: gnu: Add python-nosexcover., julien lepiller, 2017/05/11
- 25/36: gnu: Add python-django-contrib-comments., julien lepiller, 2017/05/11
- 36/36: gnu: Add pootle., julien lepiller, 2017/05/11
- 24/36: gnu: Add python-django-contact-form., julien lepiller, 2017/05/11
- 29/36: gnu: Add python-django-redis.,
julien lepiller <=
- 20/36: gnu: Add python-django-assets., julien lepiller, 2017/05/11
- 26/36: gnu: Add python-django-overextends., julien lepiller, 2017/05/11
- 28/36: gnu: Add python-fakeredis., julien lepiller, 2017/05/11
- 35/36: gnu: Fix python2-django-allauth., julien lepiller, 2017/05/11
- 19/36: gnu: Add python-mysqlclient., julien lepiller, 2017/05/11
- 30/36: gnu: Add python-django-rq., julien lepiller, 2017/05/11
- 32/36: gnu: Add python-django-appconf., julien lepiller, 2017/05/11