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

@ -9890,21 +9890,32 @@ collections of data.")
(define-public python-prompt-toolkit
(package
(name "python-prompt-toolkit")
(version "1.0.15")
(version "2.0.7")
(source
(origin
(method url-fetch)
(uri (pypi-uri "prompt_toolkit" version ".tar.gz"))
(sha256
(base32
"05v9h5nydljwpj5nm8n804ms0glajwfy1zagrzqrg91wk3qqi1c5"))))
"0fgacqk73w7s932vy46pan2yp8rvjmlkag20xvaydh9mhf6h85zx"))))
(build-system python-build-system)
(arguments
'(#:tests? #f)) ; The test suite uses some Windows-specific data types.
`(#:phases
(modify-phases %standard-phases
(delete 'check)
(add-after 'install 'post-install-check
(lambda* (#:key inputs outputs #:allow-other-keys)
;; HOME is needed for the test
;; "test_pathcompleter_can_expanduser".
(setenv "HOME" "/tmp")
(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