me
/
guix
Archived
1
0
Fork 0

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.
master
David Thompson 2015-04-04 13:15:40 -04:00
parent 121398e7d4
commit ae64112828
1 changed files with 6 additions and 4 deletions

View File

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