guix-commits
[Top][All Lists]
Advanced

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

branch staging updated: gnu: python-pyopenssl: Downgrade to 21.0.0.


From: guix-commits
Subject: branch staging updated: gnu: python-pyopenssl: Downgrade to 21.0.0.
Date: Tue, 31 May 2022 13:12:35 -0400

This is an automated email from the git hooks/post-receive script.

efraim pushed a commit to branch staging
in repository guix.

The following commit(s) were added to refs/heads/staging by this push:
     new b1f763de54 gnu: python-pyopenssl: Downgrade to 21.0.0.
b1f763de54 is described below

commit b1f763de54dc2b8e240d0f01f7948ce76f67243e
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue May 31 19:35:13 2022 +0300

    gnu: python-pyopenssl: Downgrade to 21.0.0.
    
    This is a follow-up to 048e05b7ef568dc5e29df774baaf69f7cc5ddaaa.
    
    * gnu/packages/python-crypto.scm (python-pyopenssl): Downgrade to 21.0.0.
    [source]: Add patch used by python2-pyopenssl.
    [properties]: Remove field.
    (python2-pyopenssl): Inherit from python-pyopenssl regularly.
---
 gnu/packages/python-crypto.scm | 20 +++++---------------
 1 file changed, 5 insertions(+), 15 deletions(-)

diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index 625dc7a8fa..6427dc7868 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -669,17 +669,19 @@ message digests and key derivation functions.")
                   python2-backport-ssl-match-hostname
                   python2-enum34))))))
 
+;; This is the last version which is compatable with python-cryptography < 35.
 (define-public python-pyopenssl
   (package
     (name "python-pyopenssl")
-    (version "22.0.0")
+    (version "21.0.0")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "pyOpenSSL" version))
        (sha256
         (base32
-         "1gzihw09sqi71lwx97c69hab7w4rbnl6hhfrl6za3i5a4la1n2v6"))))
+         "1cqcc20fwl521z3fxsc1c98gbnhb14q55vrvjfp6bn6h8rg8qbay"))
+       (patches (search-patches "python2-pyopenssl-openssl-compat.patch"))))
     (build-system python-build-system)
     (arguments
      (list
@@ -714,22 +716,10 @@ message digests and key derivation functions.")
     (description
       "PyOpenSSL is a high-level wrapper around a subset of the OpenSSL
 library.")
-    (properties `((python2-variant . ,(delay python2-pyopenssl))))
     (license license:asl2.0)))
 
 (define-public python2-pyopenssl
-  (let ((base (package-with-python2 (strip-python2-variant python-pyopenssl))))
-    (package
-      (inherit base)
-      (version "21.0.0")
-      (source
-       (origin
-         (method url-fetch)
-         (uri (pypi-uri "pyOpenSSL" version))
-         (patches (search-patches "python2-pyopenssl-openssl-compat.patch"))
-         (sha256
-          (base32
-           "1cqcc20fwl521z3fxsc1c98gbnhb14q55vrvjfp6bn6h8rg8qbay")))))))
+  (package-with-python2 python-pyopenssl))
 
 (define-public python-ed25519
   (package



reply via email to

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