# Newer than Fedora's python-array-api-strict (2.0.1 on f44, f45 and rawhide), which this # repository therefore overrides. pyRadPlan 0.8, ipax 0.13 and array-api-extra 0.11 use the # 2023.12-2025.12 standards (clip/minimum with Python scalars, integer-array indexing, # Device, from_dlpack copy=), which 2.0.1 does not implement. In Fedora only # python-array-api-compat requires it. Spec follows Fedora's. Name: python-array-api-strict Version: 2.6.1 Release: 1%{?dist} Summary: Strict implementation of the Python array API License: BSD-3-Clause URL: https://github.com/data-apis/array-api-strict Source: %{pypi_source array_api_strict} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pytest BuildRequires: python3-hypothesis %global _description %{expand: array_api_strict is a strict, minimal implementation of the 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. It is not intended to be used by end-users. End-users of the array API should just use their favorite array library (NumPy, CuPy, PyTorch, etc.) as usual.} %description %{_description} %package -n python3-array-api-strict Summary: %{summary} %description -n python3-array-api-strict %{_description} %prep %autosetup -p1 -n array_api_strict-%{version} # Upstream caps setuptools at 75 for its own CI; Fedora ships newer and builds it fine. sed -i 's/"setuptools >= 61.0,<=75"/"setuptools >= 61.0"/' pyproject.toml grep -q '"setuptools >= 61.0"' pyproject.toml %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l array_api_strict %check # test_set_functions builds Hypothesis array strategies for the 2025.12 standard; Fedora's # Hypothesis (6.123) knows up to 2023.12 and refuses at collection. Everything else runs. %pytest --ignore=array_api_strict/tests/test_set_functions.py %files -n python3-array-api-strict -f %{pyproject_files} %doc README.md CHANGELOG.md %changelog * Sat Nov 07 2026 Morgan Hough - 2.6.1-1 - Update to 2.6.1 over Fedora's 2.0.1, for pyRadPlan, ipax and array-api-extra, which need the 2023.12-2025.12 standards.