aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorRicardo Wurmus <ricardo.wurmus@mdc-berlin.de>2017-08-30 17:07:59 +0200
committerRicardo Wurmus <rekado@elephly.net>2017-08-30 17:31:59 +0200
commitbac5fd21a138d34df6803645df8f4c34c27d7d21 (patch)
treedc5d4b50d5b9b582dfb798c1c696ca06c8b815c0 /gnu
parente7c76b066134122077802fb9899ba8c21eb4cd8c (diff)
downloadgnu-guix-bac5fd21a138d34df6803645df8f4c34c27d7d21.tar
gnu-guix-bac5fd21a138d34df6803645df8f4c34c27d7d21.tar.gz
gnu: python-jinja2: Update to 2.9.6.
* gnu/packages/python.scm (python-jinja2): Update to 2.9.6. [arguments]: Add build phase "delete-incompatible-files".
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python.scm16
1 files changed, 14 insertions, 2 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index e8018b422d..2d4a5609cb 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -3030,15 +3030,27 @@ for Python.")
(define-public python-jinja2
(package
(name "python-jinja2")
- (version "2.8")
+ (version "2.9.6")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Jinja2" version))
(sha256
(base32
- "1x0v41lp5m1pjix3l46zx02b7lqp2hflgpnxwkywxynvi3zz47xw"))))
+ "1zzrkywhziqffrzks14kzixz7nd4yh2vc0fb04a68vfd2ai03anx"))))
(build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ ;; These files cannot be built with Python < 3.6. See
+ ;; https://github.com/pallets/jinja/issues/655
+ ;; FIXME: Remove this when the "python" package is upgraded.
+ (add-after 'unpack 'delete-incompatible-files
+ (lambda _
+ (for-each delete-file
+ '("jinja2/asyncsupport.py"
+ "jinja2/asyncfilters.py"))
+ #t)))))
(propagated-inputs
`(("python-markupsafe" ,python-markupsafe)))
(home-page "http://jinja.pocoo.org/")