From 39f95f889e80d8106dc19a804ae1b6165ebf14be Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 6 Apr 2026 11:39:15 +0100 Subject: [PATCH] gnu: python-opt-einsum: Update to 3.4.0. * gnu/packages/python-science.scm (python-opt-einsum): Update to 3.4.0. [source]: Switch to git-fetch. [propagated-inputs]: Add python-dask and python-sparse. [native-inputs]: Remove python-setuptools and python-wheel; add python-hatch-fancy-pypi-readme, python-hatch-vcs, and python-hatchling. Change-Id: I9aea1e93908bc06374e0ea9577e3b46492b64e40 --- gnu/packages/python-science.scm | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index aed58d7d30..1a05f83d28 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -2307,17 +2307,29 @@ aggregated sum and more.") (define-public python-opt-einsum (package (name "python-opt-einsum") - (version "3.3.0") - (source (origin - (method url-fetch) - (uri (pypi-uri "opt_einsum" version)) - (sha256 - (base32 - "0jb5lia0q742d1713jk33vlj41y61sf52j6pgk7pvhxvfxglgxjr")))) + (version "3.4.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dgasmith/opt_einsum") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "14p8rncba295w1bfnmn27fxi6mjas31y7yawvbiwj7d7ci196kx4")))) (build-system pyproject-build-system) - (propagated-inputs (list python-numpy)) + ;; tests: 7752 passed, 139 skipped, 6 warnings (native-inputs - (list python-pytest python-setuptools python-wheel)) + (list python-hatch-fancy-pypi-readme + python-hatch-vcs + python-hatchling + python-pytest)) + (propagated-inputs + (list python-dask + ;; python-jax + python-numpy + python-sparse + #;python-torch)) (home-page "https://github.com/dgasmith/opt_einsum") (synopsis "Optimizing numpys einsum function") (description