guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit c8fdb6b4cd78eca841f777e1e4bbebecd6daa8ff
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Tue Jun 16 13:34:25 2026 +0100

    gnu: python-partd: Apply Pandas 3 compatibility patch.
    
    * gnu/packages/python-xyz.scm (python-partd):
    [source] <patches>: New patch.
    [arguments]: Drop all.
    
    Relates-to: guix/guix!9327
    Change-Id: Iab41a7374ae429f7cb841bcc1f50a4d99059a71e
    Co-authored-by: Hugo Buddelmeijer <[email protected]>
---
 gnu/packages/python-xyz.scm | 23 +++++++++++++++--------
 1 file changed, 15 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 4352997503..c8ae6dc554 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -28683,15 +28683,22 @@ they use the same path.")
               (commit version)))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "0mwcr2cy0j5j8c9n2wlrlpc5v4za2cdh8jwhm7vpai53lqyvfjlf"))))
+        (base32 "0mwcr2cy0j5j8c9n2wlrlpc5v4za2cdh8jwhm7vpai53lqyvfjlf"))
+       (patches
+       (list
+        (origin
+          (method url-fetch)
+          (uri
+            ;; Fix PandasColumns compatibility with pandas 3.0
+            ;; StringDtype, from:
+            ;; <https://github.com/dask/partd/pull/83>.
+           (string-append "https://github.com/dask/partd/commit/";
+                          "3efd8ec7e35a7c0aa1ba15ba2cf0766af99d3c21.patch"))
+           (file-name (string-append name "-PR-83-pandas-3-support.patch"))
+          (sha256
+           (base32
+            "1sc6vmrqgqjl4rnw9gv8ymdfaqdi5razww8b322f7hpwhpdydnhk")))))))
     (build-system pyproject-build-system)
-    (arguments
-     (list
-      #:test-flags
-      ;; AttributeError: 'StringDtype' object has no attribute 'str'.
-      ;; See: <https://github.com/dask/partd/issues/82>.
-      #~(list "--deselect=partd/tests/test_pandas.py::test_PandasColumns"
-              "--deselect=partd/tests/test_pandas.py::test_column_selection")))
     (native-inputs
      (list python-pytest
            python-setuptools

Reply via email to