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

commit b4d81d7e22419f499c56723af4745ef13d2a8b77
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sat Dec 13 16:01:28 2025 +0000

    gnu: python-tables: Update to 3.10.2-0.aad9079.
    
    * gnu/packages/python-xyz.scm (python-tables): Update to
    aad9079c80ce3ae7f385d00af760d171dcc10535 commit.
    [source]: Switch to git-fetch providing comparability with python-numexpr.
    <snippet>: Delete "hdf5-blosc" git submodule.
    [phases]{pre-build}: Substitute "hdf5-blosc" source path.
    [inputs]: Add hdf5-blosc.
    
    Change-Id: I7624af17709e150cea4f316cc4fd7f1786c3df1c
---
 gnu/packages/python-xyz.scm | 26 +++++++++++++++++++-------
 1 file changed, 19 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 6f03082643..333dc93078 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -37097,18 +37097,25 @@ as possible in order to be comprehensible and easily 
extensible.")
 (define-public python-tables
   (package
     (name "python-tables")
-    (version "3.10.2")
+    ;; XXX: Compatability fix for numexpr 2.13.0, see:
+    ;; <https://github.com/PyTables/PyTables/pull/1256>.
+    (properties '((commit . "aad9079c80ce3ae7f385d00af760d171dcc10535")
+                  (revision . "0")))
+    (version (git-version "3.10.2"
+                          (assoc-ref properties 'revision)
+                          (assoc-ref properties 'commit)))
     (source
      (origin
-       (method url-fetch)
-       (uri (pypi-uri "tables" version))
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/PyTables/PyTables";)
+             (commit (assoc-ref properties 'commit))))
+       (file-name (git-file-name name version))
        (sha256
-        (base32
-         "0469jrkmp0qv8cmlqkizm3b8imyc97mk9pfn66ldpyl6f4m82i15"))
+        (base32 "0gnqj1gj6dnr167pacmynvghw8bwwll6nlz843rm95r07zi6blrm"))
        (snippet '(begin
                    (use-modules (guix build utils))
-                   ;; TODO: Unbundle.
-                   ;; (delete-file-recursively "hdf5-blosc")
+                   (delete-file-recursively "hdf5-blosc")
                    (delete-file-recursively "c-blosc")))))
     (build-system pyproject-build-system)
     (arguments
@@ -37131,6 +37138,10 @@ as possible in order to be comprehensible and easily 
extensible.")
                                 "\",\n" m)))))
           (add-before 'build 'pre-build
             (lambda _
+              (substitute* "setup.py"
+                (("hdf5-blosc/src")
+                 (format #f "~a/src"
+                         #$(package-source (this-package-input 
"hdf5-blosc")))))
               (invoke "make" "distclean")       ;Regenerate C code with Cython
               (setenv "BLOSC2_DIR" #$(this-package-input "cblosc2"))
               (setenv "BLOSC_DIR" #$(this-package-input "c-blosc"))
@@ -37163,6 +37174,7 @@ as possible in order to be comprehensible and easily 
extensible.")
            c-blosc
            c-blosc2
            hdf5
+           hdf5-blosc
            lzo))
     (propagated-inputs
      (list python-blosc2

Reply via email to