gnu: python-sh: Use custom 'check phase.

* gnu/packages/python-xyz.scm (python-sh)[arguments]: Use custom 'check
phase as suggested by upstream documentation.
[native-inputs]: Add python-coverage.
This commit is contained in:
Efraim Flashner 2019-02-05 19:53:02 +02:00
parent ea4b6ffd24
commit fd3638d89a
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 8 additions and 0 deletions

View File

@ -445,6 +445,14 @@ concepts.")
(base32 (base32
"1z2hx357xp3v4cv44xmqp7lli3frndqpyfmpbxf7n76h7s1zaaxm")))) "1z2hx357xp3v4cv44xmqp7lli3frndqpyfmpbxf7n76h7s1zaaxm"))))
(build-system python-build-system) (build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "python" "sh.py" "test"))))))
(native-inputs
`(("python-coverage" ,python-coverage)))
(home-page "https://github.com/amoffat/sh") (home-page "https://github.com/amoffat/sh")
(synopsis "Python subprocess replacement") (synopsis "Python subprocess replacement")
(description "This package provides a replacement for Python's (description "This package provides a replacement for Python's