From b12b30278c46bdad5bde6cd7c3f793f177c654eb Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 31 Dec 2025 00:28:40 +0000 Subject: [PATCH] gnu: Add python-array-api-strict. * gnu/packages/python-xyz.scm (python-array-api-strict): New variable. Change-Id: Iab9649b967da898521316481ac466342afff2631 Signed-off-by: Rutherther --- gnu/packages/python-xyz.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index e39e44decbd96daa311c404763336ea9b3d05e36..4968b1e9711f35d7b211c963f984417dbf6c52ae 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -2977,6 +2977,41 @@ from a docstring rather than the other way around.") libraries to make them compatible with the Array API standard") (license license:expat))) +(define-public python-array-api-strict + (package + (name "python-array-api-strict") + (version "2.4.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "array_api_strict" version)) + (sha256 + (base32 "0k1v3h54y1yny8mhgwjk6p51zf87farfk1xn9842g5lcrfhxqxvc")))) + (build-system pyproject-build-system) + (arguments + (list + ;; tests: 584 passed, 1 skipped, 2 deselected + #:test-flags + ;; ModuleNotFoundError: No module named 'numpy', not sure why? + #~(list "-k" (string-append "not test_disabled_extensions" + " and not test_environment_variables")))) + (native-inputs + (list python-pytest + python-setuptools + python-setuptools-scm)) + (propagated-inputs + (list python-numpy)) + (home-page "https://data-apis.org/array-api-strict/") + (synopsis "Strict implementation of the Python array API") + (description + "@code{array_api_strict} is a strict, minimal implementation of the +@url{https://data-apis.org/array-api/latest/, Python array API}. + +The purpose of array-api-strict is to provide an implementation of the array +API for consuming libraries to test against so they can be completely sure +their usage of the array API is portable.") + (license license:bsd-3))) + (define-public python-cachetools (package (name "python-cachetools")