guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit 881a8ba5b94211c7e4f8fde0b51f1ab9bd6be32e
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Wed Dec 31 00:28:40 2025 +0000

    gnu: Add python-array-api-strict.
    
    * gnu/packages/python-xyz.scm (python-array-api-strict): New variable.
    
    Change-Id: Iab9649b967da898521316481ac466342afff2631
---
 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 c7b97a8b5b..5d28edd92c 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -2931,6 +2931,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")

Reply via email to