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 <andreas@enge.fr>
This commit is contained in:
Nicolas Graves 2025-08-30 03:20:07 +02:00 committed by Andreas Enge
parent 5f891fed27
commit 13ef35140f
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -1287,6 +1287,33 @@ features, and more.")
((#:tests? tests? #t) ((#:tests? tests? #t)
#f)))))) #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 (define-public xtensor
(package (package
(name "xtensor") (name "xtensor")