gnu: python-prompt-toolkit: Specify the correct Python 2 variant.

* gnu/packages/python-xyz.scm (python-prompt-toolkit)[properties]:
The Python-2 version of this package is version 2.x of this package.
This commit is contained in:
Tobias Geerinckx-Rice 2020-09-01 01:30:01 +02:00
parent 46eb357973
commit 2bf9cc5ea7
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -13101,7 +13101,8 @@ (define-public python-prompt-toolkit
highlighting while typing, out-of-the-box multi-line input editing, advanced
code completion, incremental search, support for Chinese double-width
characters, mouse support, and auto suggestions.")
(license license:bsd-3)))
(license license:bsd-3)
(properties `((python2-variant . ,(delay python-prompt-toolkit-2))))))
(define-public python-prompt-toolkit-2
(package (inherit python-prompt-toolkit)
@ -13117,7 +13118,8 @@ (define-public python-prompt-toolkit-2
(propagated-inputs
`(("python-wcwidth" ,python-wcwidth)
("python-six" ,python-six)
("python-pygments" ,python-pygments)))))
("python-pygments" ,python-pygments)))
(properties '())))
(define-public python2-prompt-toolkit
(package-with-python2 python-prompt-toolkit-2))