From 13ef35140f170c16c619002f2a67183da3fbba04 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sat, 30 Aug 2025 03:20:07 +0200 Subject: [PATCH] gnu: Add eigen-for-python-ml-dtypes. * gnu/packages/algebra.scm (eigen-for-python-ml-dtypes): New variable. Change-Id: I0dd905c13de81fe144f7b88d18048ac953a13cd8 Signed-off-by: Andreas Enge --- gnu/packages/algebra.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm index 4781805d7e1..591ae785875 100644 --- a/gnu/packages/algebra.scm +++ b/gnu/packages/algebra.scm @@ -1287,6 +1287,33 @@ features, and more.") ((#:tests? tests? #t) #f)))))) +;; XXX: python-ml-dtypes uses this commit specifically since at least version +;; 0.2.0. It's not compiling with another eigen, so build this one for now. +(define-public eigen-for-python-ml-dtypes + (let ((commit "7bf2968fed5f246c0589e1111004cb420fcd7c71") + (revision "0")) + (hidden-package + (package + (inherit eigen) + (name "eigen-for-python-ml-dtypes") + (version (git-version "3.4.0" revision commit)) + (source + (origin + (inherit (package-source eigen)) + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/libeigen/eigen") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0yq69h7pasbzq5r83d974xi031r0z2y2x0my1rz5crky54i1j0r7")) + (patches '()))) + ;; XXX: Tests stable_norm_5 and stable_norm_6 are failing due to + ;; EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE. + (arguments + (substitute-keyword-arguments (package-arguments eigen) + ((#:tests? flag #f) #false))))))) + (define-public xtensor (package (name "xtensor")