summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2017-04-22 18:28:37 +0200
committerJulien Lepiller <julien@lepiller.eu>2017-05-11 21:57:54 +0200
commita326384be44edf1bf1b081f21a7db2b904859f41 (patch)
tree7bf6bdbe3fcae6f4730829757c07be27ac8b7070 /gnu
parent6c17e963b0cd4095912a90b73b4bc19cb35f2bf2 (diff)
downloadpatches-a326384be44edf1bf1b081f21a7db2b904859f41.tar
patches-a326384be44edf1bf1b081f21a7db2b904859f41.tar.gz
gnu: Add python-dj-database-url.
* gnu/packages/django.scm (python-dj-database-url, python2-dj-database-url): New variables.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/django.scm25
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index 3a4116ba81..3477895d3d 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -322,3 +322,28 @@ use, simply add the field to one of your models.")
(define-public python2-django-jsonfield
(package-with-python2 python-django-jsonfield))
+
+(define-public python-dj-database-url
+ (package
+ (name "python-dj-database-url")
+ (version "0.4.2")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "dj-database-url" version))
+ (sha256
+ (base32
+ "024zbkc5rli4hia9lz9g8kf1zxhb2gwawj5abf67i7gf8n22v0x6"))))
+ (build-system python-build-system)
+ (home-page "https://github.com/kennethreitz/dj-database-url")
+ (synopsis "Use Database URLs in your Django Application")
+ (description
+ "This simple Django utility allows you to utilize the 12factor inspired
+DATABASE_URL environment variable to configure your Django application.
+
+The dj_database_url.config method returns a Django database connection
+dictionary, populated with all the data specified in your URL. There is also a
+conn_max_age argument to easily enable Django’s connection pool.")
+ (license license:bsd-2)))
+
+(define-public python2-dj-database-url
+ (package-with-python2 python-dj-database-url))