diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2021-12-08 16:08:03 +0100 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2021-12-08 16:13:08 +0100 |
commit | a4a7c78f68dd86798848f86af51e71b62ce66cc1 (patch) | |
tree | bb4026a05b40b4380caca69da858660592acd52c /gnu | |
parent | 14ed9b049e5375296f438213c42663579362da0e (diff) | |
download | guix-a4a7c78f68dd86798848f86af51e71b62ce66cc1.tar.gz guix-a4a7c78f68dd86798848f86af51e71b62ce66cc1.zip |
gnu: python2-jinja2: Downgrade to 2.11.3
* gnu/packages/python-xyz.scm (python2-jinja2): Downgrade to the last version
supporting Python 2.
(python-jinja2)[properties]: Record python2-variant.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/python-xyz.scm | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index ebe0b572d2..e8e6cb20a8 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -4011,10 +4011,22 @@ for Python.") (description "Jinja2 is a small but fast and easy to use stand-alone template engine written in pure Python.") - (license license:bsd-3))) + (license license:bsd-3) + (properties `((python2-variant . ,(delay python2-jinja2)))))) +;; Version 2.11.3 is the last to support Python 2. (define-public python2-jinja2 - (package-with-python2 python-jinja2)) + (package + (inherit (package-with-python2 + (strip-python2-variant python-jinja2))) + (version "2.11.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "Jinja2" version)) + (sha256 + (base32 + "1iiklf3wns67y5lfcacxma5vxfpb7h2a67xbghs01s0avqrq9md6")))))) (define-public python-jinja2-time (package |