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

commit c0839eb43fa2b5187ce40d9b9c76113b6136d31c
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Fri Jan 2 21:34:50 2026 +0000

    gnu: python-captum: Update to 0.8.0-0.4fade3a.
    
    * gnu/packages/machine-learning.scm (python-captum): Update to
    4fade3af8dc398c1f96b193c969565aad23aedf5 commit.
    [propagated-inputs]: Add python-openai.
    
    Change-Id: Ic51de929ac28f565244b7aec93b9b2be7211fb02
---
 gnu/packages/machine-learning.scm | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/machine-learning.scm 
b/gnu/packages/machine-learning.scm
index ca7af89190..5be6243852 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -5155,19 +5155,25 @@ Actions for the Lightning suite of libraries.")
 (define-public python-captum
   (package
     (name "python-captum")
-    (version "0.8.0")
+    ;; The latest commit provides compatability with NumPy 2.
+    (properties '((commit . "4fade3af8dc398c1f96b193c969565aad23aedf5")
+                  (revision . "0")))
+    (version (git-version "0.8.0"
+                          (assoc-ref properties 'revision)
+                          (assoc-ref properties 'commit)))
     (source (origin
               (method git-fetch)
               (uri (git-reference
                     (url "https://github.com/pytorch/captum";)
-                    (commit (string-append "v" version))))
+                    (commit (assoc-ref properties 'commit))))
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "066sal7hzpk9gsb6pk61sa9x01ckjbjb2mc8c69nc7aghqqrpqjs"))))
+                "1v1di9kk2xinwwcll5q514fn9r6ivj3zzgg6l5h7dwlsn2vymsnd"))))
     (build-system pyproject-build-system)
     (arguments
      (list
+      ;; tests: 17 failed, 1368 passed, 75 skipped, 3 deselected, 542 warnings
       #:test-flags
       #~(list "-k" (string-append
                     ;; These two tests (out of more than 1000 tests) fail
@@ -5189,7 +5195,9 @@ Actions for the Lightning suite of libraries.")
      (list python-matplotlib
            python-numpy
            python-pytorch
-           python-tqdm))
+           python-tqdm
+           ;; [optional]
+           python-openai))
     (home-page "https://captum.ai";)
     (synopsis "Model interpretability for PyTorch")
     (description "Captum is a model interpretability and understanding library

Reply via email to