guix-commits
[Top][All Lists]
Advanced

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

05/05: gnu: python-pycurl: Fix FTBFS from 7b844100464633db5455a3931858bb


From: guix-commits
Subject: 05/05: gnu: python-pycurl: Fix FTBFS from 7b844100464633db5455a3931858bb57c9e529e6.
Date: Sat, 24 Nov 2018 10:14:12 -0500 (EST)

mbakke pushed a commit to branch core-updates
in repository guix.

commit 60667159d329b1f07d01b5bd03e3b289208ad406
Author: Marius Bakke <address@hidden>
Date:   Sat Nov 24 15:56:55 2018 +0100

    gnu: python-pycurl: Fix FTBFS from 7b844100464633db5455a3931858bb57c9e529e6.
    
    * gnu/packages/python-web.scm (python-pycurl)[arguments]: Add phase
    'configure-tls-backend'.
---
 gnu/packages/python-web.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 03db842..8957d28 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -443,7 +443,15 @@ C, yielding parse times that can be a thirtieth of the 
html5lib parse times.")
     (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 
<https://github.com/pycurl/pycurl/pull/147>.
+                        (setenv "PYCURL_SSL_LIBRARY" "gnutls")
+                        #t)))))
     (native-inputs
      `(("python-nose" ,python-nose)
        ("python-bottle" ,python-bottle)))



reply via email to

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