guix-commits
[Top][All Lists]
Advanced

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

01/03: gnu: python-requests: Fix Python 2 version and add support for Py


From: David Thompson
Subject: 01/03: gnu: python-requests: Fix Python 2 version and add support for Python 3.
Date: Sun, 05 Apr 2015 16:44:06 +0000

davexunit pushed a commit to branch master
in repository guix.

commit ae64112828824895957038842fb705e846e3b69c
Author: David Thompson <address@hidden>
Date:   Sat Apr 4 13:15:40 2015 -0400

    gnu: python-requests: Fix Python 2 version and add support for Python 3.
    
    * gnu/packages/python.scm (python-requests): New variable.
      (python2-requests): Generate based on Python 3 variant.
---
 gnu/packages/python.scm |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index c5cae6d..8c86d5a 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -1571,9 +1571,9 @@ is used by the Requests library to verify HTTPS 
requests.")
 (define-public python2-certifi
   (package-with-python2 python-certifi))
 
-(define-public python2-requests
+(define-public python-requests
   (package
-    (name "python2-requests")
+    (name "python-requests")
     (version "2.4.0")
     (source (origin
              (method url-fetch)
@@ -1588,8 +1588,7 @@ is used by the Requests library to verify HTTPS 
requests.")
     (inputs
      `(("python-setuptools" ,python-setuptools)
        ("python-certifi" ,python-certifi)))
-    (arguments `(#:tests? #f ; no tests
-                 #:python ,python-2))
+    (arguments `(#:tests? #f)) ; no tests
     (home-page "http://python-requests.org/";)
     (synopsis "Python HTTP library")
     (description
@@ -1597,6 +1596,9 @@ is used by the Requests library to verify HTTPS 
requests.")
 than Python’s urllib2 library.")
     (license asl2.0)))
 
+(define-public python2-requests
+  (package-with-python2 python-requests))
+
 (define-public python-jsonschema
   (package
     (name "python-jsonschema")



reply via email to

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