From c94d57557673746dceb9323087c62b9018a7c61b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 2 Jan 2026 21:34:50 +0000 Subject: [PATCH] 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 Signed-off-by: Rutherther --- 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 e25ebcd0adb17b76026b846551f9149eb24916f5..eba573fe35e05645999f5dee3691e8ccbf222e0e 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -5252,19 +5252,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 @@ -5286,7 +5292,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