guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

07/12: gnu: python-pandas: Update to 1.3.0.


From: guix-commits
Subject: 07/12: gnu: python-pandas: Update to 1.3.0.
Date: Wed, 28 Jul 2021 14:32:27 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit 3a150e9f12ec19f0d9dc51368f4c3d59d986ca58
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Wed Jul 28 19:21:22 2021 +0200

    gnu: python-pandas: Update to 1.3.0.
    
    * gnu/packages/python-science.scm (python-pandas): Update to 1.3.0.
    [arguments]: Adjust check phase.
---
 gnu/packages/python-science.scm | 70 ++++++++++++++++++++++-------------------
 1 file changed, 38 insertions(+), 32 deletions(-)

diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 6fce8d2..7f169f0 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]