guix-commits
[Top][All Lists]
Advanced

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

02/15: gnu: python-idna: Update to 3.3.


From: guix-commits
Subject: 02/15: gnu: python-idna: Update to 3.3.
Date: Sun, 13 Feb 2022 09:18:11 -0500 (EST)

mbakke pushed a commit to branch staging
in repository guix.

commit f3803b7c201f42c8508b1b2ea3dd90463e06d75a
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Sat Jan 22 15:42:18 2022 +0100

    gnu: python-idna: Update to 3.3.
    
    * gnu/packages/python-xyz.scm (python-idna): Update to 3.3.
    [properties]: New field.
    (python2-idna): Stick with version 2.10.
---
 gnu/packages/python-xyz.scm | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 41b60325d2..b002b60e3b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -12038,14 +12038,14 @@ versions of Python.")
 (define-public python-idna
   (package
     (name "python-idna")
-    (version "2.10")
+    (version "3.3")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "idna" version))
        (sha256
         (base32
-         "1xmk3s92d2vq42684p61wixfmh3qpr2mw762w0n6662vhlpqf1xk"))))
+         "0v8f6qjfi5i7qc5icsbv2pi24qy6k6m8wjqjvdf2sxjvlpq3yr4x"))))
     (build-system python-build-system)
     (home-page "https://github.com/kjd/idna";)
     (synopsis "Internationalized domain names in applications")
@@ -12057,10 +12057,20 @@ from the earlier standard from 2003.  The library is 
also intended to act as a
 suitable drop-in replacement for the “encodings.idna” module that comes with
 the Python standard library but currently only supports the older 2003
 specification.")
+    (properties `((python2-variant . ,(delay python2-idna))))
     (license license:bsd-4)))
 
 (define-public python2-idna
-  (package-with-python2 python-idna))
+  (let ((base (package-with-python2 (strip-python2-variant python-idna))))
+    (package
+      (inherit base)
+      (version "2.10")
+      (source (origin
+                (method url-fetch)
+                (uri (pypi-uri "idna" version))
+                (sha256
+                 (base32
+                  "1xmk3s92d2vq42684p61wixfmh3qpr2mw762w0n6662vhlpqf1xk")))))))
 
 (define-public python-libsass
   (package



reply via email to

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