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".
This commit is contained in:
parent
e7c76b0661
commit
bac5fd21a1
|
@ -3030,15 +3030,27 @@ for Python.")
|
||||||
(define-public python-jinja2
|
(define-public python-jinja2
|
||||||
(package
|
(package
|
||||||
(name "python-jinja2")
|
(name "python-jinja2")
|
||||||
(version "2.8")
|
(version "2.9.6")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "Jinja2" version))
|
(uri (pypi-uri "Jinja2" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1x0v41lp5m1pjix3l46zx02b7lqp2hflgpnxwkywxynvi3zz47xw"))))
|
"1zzrkywhziqffrzks14kzixz7nd4yh2vc0fb04a68vfd2ai03anx"))))
|
||||||
(build-system python-build-system)
|
(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
|
(propagated-inputs
|
||||||
`(("python-markupsafe" ,python-markupsafe)))
|
`(("python-markupsafe" ,python-markupsafe)))
|
||||||
(home-page "http://jinja.pocoo.org/")
|
(home-page "http://jinja.pocoo.org/")
|
||||||
|
|
Loading…
Reference in New Issue