%global srcname autograd Name: python-%{srcname} Version: 1.9.1 Release: 1%{?dist} Summary: Efficiently computes derivatives of NumPy code License: MIT URL: https://github.com/HIPS/autograd Source: %{pypi_source %{srcname}} BuildArch: noarch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros # %%check: upstream's suite uses scipy for test_scipy and xarray for test_xarray. BuildRequires: python3-pytest BuildRequires: python3-scipy BuildRequires: python3-xarray %global _description %{expand: Autograd can automatically differentiate native Python and NumPy code. It handles a large subset of Python, including loops, ifs, recursion and closures, and it can take derivatives of derivatives of derivatives. It supports reverse-mode differentiation (backpropagation), so it can take gradients of scalar-valued functions with respect to array-valued arguments, as well as forward-mode differentiation, and the two can be composed arbitrarily.} %description %_description %package -n python3-%{srcname} Summary: %{summary} Recommends: python3-scipy %description -n python3-%{srcname} %_description %prep %autosetup -p1 -n %{srcname}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l %{srcname} %check # Upstream's addopts require pytest-cov and pytest-xdist and write coverage # reports; neither is wanted in a build root. %pytest -q -o addopts= -o required_plugins= tests %files -n python3-%{srcname} -f %{pyproject_files} %doc README.md %changelog * Fri Oct 23 2026 Morgan Hough - 1.9.1-1 - Initial package: autograd 1.9.1 (MIT, license.txt; pure Python, numpy<3). Net-new to Fedora; pyPESTO's test helpers import it. - Upstream suite, offline on f44: 631 passed, 0 failed.