gnu: python-prompt-toolkit: Update to 2.0.7.

* gnu/packages/python.scm (python-prompt-toolkit): Update to 2.0.7.
[arguments]: Enable tests; add phase "post-install-check" and delete "check"
phase.
[native-inputs]: Add python-pytest.
This commit is contained in:
Ricardo Wurmus 2019-01-02 12:48:39 +01:00 committed by Ricardo Wurmus
parent eecaf17086
commit 80486d6673
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 32 additions and 21 deletions

View File

@ -9888,32 +9888,43 @@ collections of data.")
(package-with-python2 python-backpack)) (package-with-python2 python-backpack))
(define-public python-prompt-toolkit (define-public python-prompt-toolkit
(package (package
(name "python-prompt-toolkit") (name "python-prompt-toolkit")
(version "1.0.15") (version "2.0.7")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "prompt_toolkit" version ".tar.gz")) (uri (pypi-uri "prompt_toolkit" version ".tar.gz"))
(sha256 (sha256
(base32 (base32
"05v9h5nydljwpj5nm8n804ms0glajwfy1zagrzqrg91wk3qqi1c5")))) "0fgacqk73w7s932vy46pan2yp8rvjmlkag20xvaydh9mhf6h85zx"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
'(#:tests? #f)) ; The test suite uses some Windows-specific data types. `(#:phases
(propagated-inputs (modify-phases %standard-phases
`(("python-wcwidth" ,python-wcwidth) (delete 'check)
("python-six" ,python-six) (add-after 'install 'post-install-check
("python-pygments" ,python-pygments))) (lambda* (#:key inputs outputs #:allow-other-keys)
(home-page "https://github.com/jonathanslenders/python-prompt-toolkit") ;; HOME is needed for the test
(synopsis "Library for building command line interfaces in Python") ;; "test_pathcompleter_can_expanduser".
(description (setenv "HOME" "/tmp")
"Prompt-Toolkit is a library for building interactive command line (add-installed-pythonpath inputs outputs)
(invoke "py.test"))))))
(propagated-inputs
`(("python-wcwidth" ,python-wcwidth)
("python-six" ,python-six)
("python-pygments" ,python-pygments)))
(native-inputs
`(("python-pytest" ,python-pytest)))
(home-page "https://github.com/jonathanslenders/python-prompt-toolkit")
(synopsis "Library for building command line interfaces in Python")
(description
"Prompt-Toolkit is a library for building interactive command line
interfaces in Python. It's like GNU Readline but it also features syntax interfaces in Python. It's like GNU Readline but it also features syntax
highlighting while typing, out-of-the-box multi-line input editing, advanced highlighting while typing, out-of-the-box multi-line input editing, advanced
code completion, incremental search, support for Chinese double-width code completion, incremental search, support for Chinese double-width
characters, mouse support, and auto suggestions.") characters, mouse support, and auto suggestions.")
(license license:bsd-3))) (license license:bsd-3)))
(define-public python2-prompt-toolkit (define-public python2-prompt-toolkit
(package-with-python2 python-prompt-toolkit)) (package-with-python2 python-prompt-toolkit))