gnu: python2-backports-shutil-get-terminal-size: Enable tests.

* gnu/packages/python.scm
(python2-backports-shutil-get-terminal-size)[arguments]: Replace 'check' phase
with custom command.
[native-inputs]: Add PYTHON2-PYTEST.
This commit is contained in:
Marius Bakke 2017-03-06 13:22:51 +01:00
parent d701f8bdb2
commit c0446791bd
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 8 additions and 1 deletions

View File

@ -6129,7 +6129,14 @@ connection to each user.")
"107cmn7g3jnbkp826zlj8rrj19fam301qvaqf0f3905f5217lgki"))))
(build-system python-build-system)
(arguments
`(#:python ,python-2))
`(#:python ,python-2
#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(zero? (system* "py.test" "-v")))))))
(native-inputs
`(("python2-pytest" ,python2-pytest)))
(home-page "https://github.com/chrippa/backports.shutil_get_terminal_size")
(synopsis "Backport of Python 3.3's @code{shutil.get_terminal_size}")
(description