diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2021-07-28 19:21:22 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2021-07-28 20:31:06 +0200 |
commit | 3a150e9f12ec19f0d9dc51368f4c3d59d986ca58 (patch) | |
tree | c583fe002cc0e8b88d74b0a5dc411d9a8e1dfe49 | |
parent | 242221e38023d6528a5a698521fbc94821f49ada (diff) | |
download | guix-3a150e9f12ec19f0d9dc51368f4c3d59d986ca58.tar.gz |
gnu: python-pandas: Update to 1.3.0.
* gnu/packages/python-science.scm (python-pandas): Update to 1.3.0. [arguments]: Adjust check phase.
-rw-r--r-- | gnu/packages/python-science.scm | 70 |
1 files changed, 38 insertions, 32 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 6fce8d2319..7f169f061d 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -327,49 +327,55 @@ of the SGP4 satellite tracking algorithm.") (define-public python-pandas (package (name "python-pandas") - (version "1.0.5") + (version "1.3.0") (source (origin (method url-fetch) (uri (pypi-uri "pandas" version)) (sha256 - (base32 "1a2gv3g6jr6vb5ca43fkwjl5xf86wpfz8y3zcy787adjl0hdkib9")))) + (base32 "1qi2cv450m05dwccx3p1s373k5b4ncvwi74plnms2pidrz4ycm65")))) (build-system python-build-system) (arguments `(#:modules ((guix build utils) (guix build python-build-system) (ice-9 ftw) + (srfi srfi-1) (srfi srfi-26)) - #:phases (modify-phases %standard-phases - (add-after 'unpack 'patch-which - (lambda* (#:key inputs #:allow-other-keys) - (let ((which (assoc-ref inputs "which"))) - (substitute* "pandas/io/clipboard/__init__.py" - (("^WHICH_CMD = .*") - (string-append "WHICH_CMD = \"" which "\"\n")))) - #t)) - (add-before 'check 'prepare-x - (lambda _ - (system "Xvfb &") - (setenv "DISPLAY" ":0") - ;; xsel needs to write a log file. - (setenv "HOME" "/tmp") - #t)) - (replace 'check - (lambda _ - (let ((build-directory - (string-append - (getcwd) "/build/" - (car (scandir "build" - (cut string-prefix? "lib." <>)))))) - ;; Disable the "strict data files" option which causes - ;; the build to error out if required data files are - ;; not available (as is the case with PyPI archives). - (substitute* "setup.cfg" - (("addopts = --strict-data-files") "addopts = ")) - (with-directory-excursion build-directory - (invoke "pytest" "-vv" "pandas" "--skip-slow" - "--skip-network")))))))) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-which + (lambda* (#:key inputs #:allow-other-keys) + (let ((which (assoc-ref inputs "which"))) + (substitute* "pandas/io/clipboard/__init__.py" + (("^WHICH_CMD = .*") + (string-append "WHICH_CMD = \"" which "\"\n")))))) + (add-before 'check 'prepare-x + (lambda _ + (system "Xvfb &") + (setenv "DISPLAY" ":0") + ;; xsel needs to write a log file. + (setenv "HOME" "/tmp"))) + (replace 'check + (lambda _ + (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"))))))))) (propagated-inputs `(("python-jinja2" ,python-jinja2) ("python-numpy" ,python-numpy) |