gnu: python-click: Fix tests.

* gnu/packages/python.scm (python-click, python2-click)[arguments]: Replace
'check' with custom phase.
[native-inputs]: Add python-pytest.
This commit is contained in:
Marius Bakke 2016-12-13 18:51:01 +01:00 committed by Leo Famulari
parent 3fe2c209e0
commit 97be1bc231
No known key found for this signature in database
GPG key ID: 2646FA30BACA7F08

View file

@ -2301,7 +2301,12 @@ (define-public python-click
(substitute* "click/_unicodefun.py" (substitute* "click/_unicodefun.py"
(("'locale'") (("'locale'")
(string-append "'" glibc "/bin/locale'")))) (string-append "'" glibc "/bin/locale'"))))
#t))))) #t))
(replace 'check
(lambda _
(zero? (system* "make" "test")))))))
(native-inputs
`(("python-pytest" ,python-pytest)))
(home-page "http://click.pocoo.org") (home-page "http://click.pocoo.org")
(synopsis "Command line library for Python") (synopsis "Command line library for Python")
(description (description