gnu: python2-oauthlib: Use python2-variant.

* gnu/packages/python.scm (python2-oauthlib): Use 'strip-python2-variant'.
[native-inputs]: Add python2-setuptools.
(python-oauthlib)[inputs]: Remove python-setuptools.
[properties]: Define python2-variant for python2-oauthlib.
This commit is contained in:
Efraim Flashner 2016-04-24 20:31:23 +03:00
parent 79b555edeb
commit 59f151ec54
1 changed files with 7 additions and 9 deletions

View File

@ -2364,8 +2364,7 @@ somewhat intelligeble.")
"1bfrj70vdjxjw74khbyh6f0dksv7p5rh2346jnlrffyacd3gwjzg"))))
(build-system python-build-system)
(native-inputs
`(("python-setuptools" ,python-setuptools)
("python-coverage" ,python-coverage)
`(("python-coverage" ,python-coverage)
("python-nose" ,python-nose)
("python-mock" ,python-mock)))
(inputs
@ -2377,17 +2376,16 @@ somewhat intelligeble.")
(description
"Oauthlib is a generic, spec-compliant, thorough implementation of the
OAuth request-signing logic.")
(license bsd-3)))
(license bsd-3)
(properties `((python2-variant . ,(delay python2-oauthlib))))))
(define-public python2-oauthlib
(let ((base (package-with-python2 python-oauthlib)))
(let ((base (package-with-python2 (strip-python2-variant python-oauthlib))))
(package
(inherit base)
(inputs
`(("python2-unittest2" ,python2-unittest2)
("python2-cryptography" ,python2-cryptography)
,@(alist-delete "python-cryptography"
(package-inputs base)))))))
(native-inputs `(("python2-setuptools" ,python2-setuptools)
("python2-unittest2" ,python2-unittest2)
,@(package-native-inputs base))))))
(define-public python-itsdangerous
(package