me
/
guix
Archived
1
0
Fork 0

gnu: Add python-array-api-compat.

* gnu/packages/python-xyz.scm (python-array-api-compat): New variable.

Change-Id: Ibfd701630b41f860c7ad4df57fd3624d9c5b7752
master
Ricardo Wurmus 2024-04-30 23:49:28 +02:00
parent a3ff747a48
commit eb866b3699
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 21 additions and 0 deletions

View File

@ -1037,6 +1037,27 @@ transformation of the plane.")
from a docstring rather than the other way around.") from a docstring rather than the other way around.")
(license license:mpl2.0))) (license license:mpl2.0)))
(define-public python-array-api-compat
(package
(name "python-array-api-compat")
(version "1.6")
(source
(origin
(method url-fetch)
(uri (pypi-uri "array_api_compat" version))
(sha256
(base32 "1bvn92v52h8p2zpinwv5bl1314kdjw3msalj91nczfdbrmay78bl"))))
(build-system pyproject-build-system)
;; Tests would require all supported array libraries, including pytorch
(arguments (list #:tests? #false))
(propagated-inputs (list python-numpy))
(home-page "https://data-apis.org/array-api-compat/")
(synopsis "Array API compatibility wrapper for NumPy et al")
(description
"This package provides a wrapper around @code{NumPy} and other array
libraries to make them compatible with the Array API standard")
(license license:expat)))
(define-public python-cachetools (define-public python-cachetools
(package (package
(name "python-cachetools") (name "python-cachetools")