gnu: python-sphinx@1.6: Add python2 variant.

* gnu/packages/python.scm (python-sphinx-1.6)[properties]: Declare python2 variant.
(python2-sphinx-1.6): New public variable.
This commit is contained in:
Marius Bakke 2018-02-27 20:44:16 +01:00
parent 9c77852e19
commit 3719d0edf2
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 11 additions and 1 deletions

View File

@ -2412,7 +2412,17 @@ sources.")
`(("python-pytest" ,python-pytest)
("imagemagick" ,imagemagick) ; for "convert"
,@(package-native-inputs python-sphinx)))
(properties '())))
(properties `((python2-variant . ,(delay python2-sphinx-1.6))))))
(define-public python2-sphinx-1.6
(let ((base (package-with-python2 (strip-python2-variant python-sphinx-1.6))))
(package
(inherit base)
(propagated-inputs
`(("python2-typing" ,python2-typing)
,@(package-propagated-inputs base)))
(native-inputs `(("python2-enum34" ,python2-enum34)
,@(package-native-inputs base))))))
(define-public python-sphinx-1.5.3
(package