mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-07 03:44:06 -05:00
gnu: python-pandas: Honor #:tests? flag.
* gnu/packages/python-science.scm (python-pandas)[arguments]: Adjust custom 'check phase to honor the #:tests? flag.
This commit is contained in:
parent
ab961fe542
commit
a0400dc9a5
1 changed files with 15 additions and 14 deletions
|
@ -359,26 +359,27 @@ (define-public python-pandas
|
|||
;; xsel needs to write a log file.
|
||||
(setenv "HOME" "/tmp")))
|
||||
(replace 'check
|
||||
(lambda _
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(let ((build-directory
|
||||
(string-append
|
||||
(getcwd) "/build/"
|
||||
(first (scandir "build"
|
||||
(cut string-prefix? "lib." <>))))))
|
||||
(with-directory-excursion build-directory
|
||||
(invoke "pytest" "-vv" "pandas" "--skip-slow"
|
||||
"--skip-network"
|
||||
"-k"
|
||||
;; These tets access the internet:
|
||||
;; pandas/tests/io/xml/test_xml.py::test_wrong_url[lxml]
|
||||
;; pandas/tests/io/xml/test_xml.py::test_wrong_url[etree]
|
||||
;; TODO: the excel tests fail for unknown reasons
|
||||
(string-append "not test_wrong_url"
|
||||
" and not test_excelwriter_fspath"
|
||||
" and not test_ExcelWriter_dispatch"
|
||||
;; TODO: Missing input
|
||||
" and not TestS3"
|
||||
" and not s3")))))))))
|
||||
(when tests?
|
||||
(invoke "pytest" "-vv" "pandas" "--skip-slow"
|
||||
"--skip-network"
|
||||
"-k"
|
||||
;; These tets access the internet:
|
||||
;; pandas/tests/io/xml/test_xml.py::test_wrong_url[lxml]
|
||||
;; pandas/tests/io/xml/test_xml.py::test_wrong_url[etree]
|
||||
;; TODO: the excel tests fail for unknown reasons
|
||||
(string-append "not test_wrong_url"
|
||||
" and not test_excelwriter_fspath"
|
||||
" and not test_ExcelWriter_dispatch"
|
||||
;; TODO: Missing input
|
||||
" and not TestS3"
|
||||
" and not s3"))))))))))
|
||||
(propagated-inputs
|
||||
`(("python-jinja2" ,python-jinja2)
|
||||
("python-numpy" ,python-numpy)
|
||||
|
|
Loading…
Reference in a new issue