guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/04: gnu: python2-jinja2: Downgrade to 2.11.3


From: guix-commits
Subject: 01/04: gnu: python2-jinja2: Downgrade to 2.11.3
Date: Wed, 8 Dec 2021 10:33:09 -0500 (EST)

rekado pushed a commit to branch core-updates-frozen
in repository guix.

commit a4a7c78f68dd86798848f86af51e71b62ce66cc1
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Wed Dec 8 16:08:03 2021 +0100

    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.
---
 gnu/packages/python-xyz.scm | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index ebe0b57..e8e6cb2 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]