mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00: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 @@ of the SGP4 satellite tracking algorithm.")
|
||||||
;; xsel needs to write a log file.
|
;; xsel needs to write a log file.
|
||||||
(setenv "HOME" "/tmp")))
|
(setenv "HOME" "/tmp")))
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
(let ((build-directory
|
(let ((build-directory
|
||||||
(string-append
|
(string-append
|
||||||
(getcwd) "/build/"
|
(getcwd) "/build/"
|
||||||
(first (scandir "build"
|
(first (scandir "build"
|
||||||
(cut string-prefix? "lib." <>))))))
|
(cut string-prefix? "lib." <>))))))
|
||||||
(with-directory-excursion build-directory
|
(with-directory-excursion build-directory
|
||||||
(invoke "pytest" "-vv" "pandas" "--skip-slow"
|
(when tests?
|
||||||
"--skip-network"
|
(invoke "pytest" "-vv" "pandas" "--skip-slow"
|
||||||
"-k"
|
"--skip-network"
|
||||||
;; These tets access the internet:
|
"-k"
|
||||||
;; pandas/tests/io/xml/test_xml.py::test_wrong_url[lxml]
|
;; These tets access the internet:
|
||||||
;; pandas/tests/io/xml/test_xml.py::test_wrong_url[etree]
|
;; pandas/tests/io/xml/test_xml.py::test_wrong_url[lxml]
|
||||||
;; TODO: the excel tests fail for unknown reasons
|
;; pandas/tests/io/xml/test_xml.py::test_wrong_url[etree]
|
||||||
(string-append "not test_wrong_url"
|
;; TODO: the excel tests fail for unknown reasons
|
||||||
" and not test_excelwriter_fspath"
|
(string-append "not test_wrong_url"
|
||||||
" and not test_ExcelWriter_dispatch"
|
" and not test_excelwriter_fspath"
|
||||||
;; TODO: Missing input
|
" and not test_ExcelWriter_dispatch"
|
||||||
" and not TestS3"
|
;; TODO: Missing input
|
||||||
" and not s3")))))))))
|
" and not TestS3"
|
||||||
|
" and not s3"))))))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("python-jinja2" ,python-jinja2)
|
`(("python-jinja2" ,python-jinja2)
|
||||||
("python-numpy" ,python-numpy)
|
("python-numpy" ,python-numpy)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue