~ruther/guix-local

13ef35140f170c16c619002f2a67183da3fbba04 — Nicolas Graves 7 months ago 5f891fe
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>
1 files changed, 27 insertions(+), 0 deletions(-)

M gnu/packages/algebra.scm
M gnu/packages/algebra.scm => gnu/packages/algebra.scm +27 -0
@@ 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")