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.
This commit is contained in:
Efraim Flashner 2023-05-01 10:52:36 +03:00
parent 8b3ae46ae3
commit 676f608546
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -3404,12 +3404,19 @@ (define-public python-urllib3
(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