%global pypi_name array-api-extra %global dist_name array_api_extra Name: python-%{pypi_name} Version: 0.11.5 Release: 1%{?dist} Summary: Extra array functions built on the Python array API standard License: MIT URL: https://github.com/data-apis/array-api-extra Source0: %{pypi_source %{dist_name}} BuildArch: noarch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros BuildRequires: python3-pytest BuildRequires: python3-hypothesis BuildRequires: python3-numpy BuildRequires: python3-array-api-strict BuildRequires: python3-typing-extensions %global _description %{expand: array-api-extra provides functions that are not in the Python array API standard (atleast_nd, cov, expand_dims, kron, nunique, pad, sinc, setdiff1d and others), written once against the standard so they work with any compliant array library: NumPy, CuPy, PyTorch, JAX, Dask and array-api-strict. ipax uses it.} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %_description %prep %autosetup -n %{dist_name}-%{version} %generate_buildrequires # meson-python cannot report metadata before building; read [project] instead. %pyproject_buildrequires -p %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{dist_name} %check # The wheel ships upstream's tests as array_api_extra.tests; they are run below. %pyproject_check_import -e 'array_api_extra.tests*' # Backends Fedora does not ship (JAX, CuPy, sparse, Dask, PyTorch) skip themselves; # NumPy and array-api-strict are exercised. The vendoring tests check vendoring into # other projects' trees, which needs those projects' sources. # Upstream marks some tests thread_unsafe for pytest-run-parallel (not in Fedora) and turns # every warning into an error, so the unknown mark would stop collection. %pytest -p no:cacheprovider tests --ignore=tests/vendoring -o addopts="-ra" \ -W ignore::pytest.PytestUnknownMarkWarning %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %doc README.md %changelog * Fri Nov 06 2026 Morgan Hough - 0.11.5-1 - Initial package; dependency of ipax and pyRadPlan.