diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 03db842531..8957d28268 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -443,7 +443,15 @@ (define-public python-pycurl (arguments ;; The tests attempt to access external web servers, so we cannot run ;; them. Furthermore, they are skipped altogether when using Python 2. - '(#:tests? #f)) + '(#:tests? #f + #:phases (modify-phases %standard-phases + (add-before 'build 'configure-tls-backend + (lambda _ + ;; XXX: PycURL fails to automatically determine which TLS + ;; backend to use when cURL is built with --disable-static. + ;; See setup.py and . + (setenv "PYCURL_SSL_LIBRARY" "gnutls") + #t))))) (native-inputs `(("python-nose" ,python-nose) ("python-bottle" ,python-bottle)))