gnu: python-pandas: Fix building with pytest-6.

* gnu/packages/python-science.scm (python-pandas)[arguments]: In custom
'check phase adjust to not fail tests with missing test data.
This commit is contained in:
Efraim Flashner 2021-10-25 14:00:12 +03:00
parent a0400dc9a5
commit c8c35af8ac
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -365,6 +365,9 @@ (define-public python-pandas
(getcwd) "/build/"
(first (scandir "build"
(cut string-prefix? "lib." <>))))))
(substitute* "pyproject.toml"
;; Not all data files are distributed with the tarball.
(("--strict-data-files ") ""))
(with-directory-excursion build-directory
(when tests?
(invoke "pytest" "-vv" "pandas" "--skip-slow"