gnu: python-pytest-cov: Use upstream options for testing.

* gnu/packages/python.scm (python-pytest-cov): Replace phase "check"
  by one passing the options found in upstream's tox.ini-file
  to "python setup.py check".
This commit is contained in:
Hartmut Goebel 2016-10-02 23:15:14 +02:00
parent b3e8b4bd0f
commit ce40b38395
No known key found for this signature in database
GPG Key ID: 634A8DFFD3F631DF
1 changed files with 10 additions and 0 deletions

View File

@ -1662,6 +1662,16 @@ and many external plugins.")
(base32
"1yl4nbhzfgsxqlsyk4clafgp9x11zvgrkprm9i2p3fgkwx9jxcm8"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
;; options taken from tox.ini
;; TODO: make "--restructuredtext" tests pass. They currently fail
;; with "Duplicate implicit target name"
(zero? (system* "python" "./setup.py" "check"
"--strict" "--metadata")))))))
(propagated-inputs
`(("python-coverage" ,python-coverage)
("python-pytest" ,python-pytest)))