guix-commits
[Top][All Lists]
Advanced

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

branch master updated: gnu: python-urllib3: Adjust dependencies per arch


From: guix-commits
Subject: branch master updated: gnu: python-urllib3: Adjust dependencies per architecture.
Date: Mon, 01 May 2023 03:54:47 -0400

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

efraim pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 676f608546 gnu: python-urllib3: Adjust dependencies per architecture.
676f608546 is described below

commit 676f6085468ab1fb1be8ce24d073f24032a02b75
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon May 1 10:52:36 2023 +0300

    gnu: python-urllib3: Adjust dependencies per architecture.
    
    * gnu/packages/python-web.scm (python-urllib3)[propagated-inputs]: Only
    include python-cryptography, python-pyopenssl on architectures where
    they are supported.
---
 gnu/packages/python-web.scm | 19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index d7ad051007..9dfc18867f 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -3404,12 +3404,19 @@ addon for removing tracking fields from URLs.")
     (build-system python-build-system)
     (arguments `(#:tests? #f))
     (propagated-inputs
-     (list ;; These 5 inputs are used to build urrlib3[secure]
-           python-certifi
-           python-cryptography
-           python-idna
-           python-pyopenssl
-           python-pysocks))
+     (append
+       ;; These 5 inputs are used to build urrlib3[secure]
+       (list python-certifi)
+       (if (member (%current-system)
+                   (package-transitive-supported-systems python-cryptography))
+         (list python-cryptography)
+         '())
+       (list python-idna)
+       (if (member (%current-system)
+                   (package-transitive-supported-systems python-pyopenssl))
+         (list python-pyopenssl)
+         '())
+       (list python-pysocks)))
     (home-page "https://urllib3.readthedocs.io/";)
     (synopsis "HTTP library with thread-safe connection pooling")
     (description



reply via email to

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