%global pypi_name ndcube Name: python-%{pypi_name} Version: 2.4.1 Release: 1%{?dist} Summary: Multi-dimensional astronomical data with coordinate transforms License: BSD-3-Clause URL: https://github.com/sunpy/ndcube Source0: %{pypi_source %{pypi_name}} BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: ndcube provides support for manipulating N-dimensional astronomical data with coordinate transforms attached, built on astropy's NDData and WCS/gwcs machinery. It is a runtime dependency of specutils, and transitively of TOM Toolkit.} %description %{_description} %package -n python3-%{pypi_name} Summary: %{summary} Requires: python3-astropy >= 6.1.0 Requires: python3-gwcs >= 0.24.0 Requires: python3-numpy >= 1.26.0 Requires: python3-scipy >= 1.14.1 %description -n python3-%{pypi_name} %{_description} %prep %autosetup -n %{pypi_name}-%{version} %generate_buildrequires export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_buildrequires -r %build export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_wheel %install export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_install %pyproject_save_files %{pypi_name} %check # ndcube ships its test suite inside the package (ndcube.*.tests.*); those modules import pytest at # module scope, which %%pyproject_check_import then trips over. They are scaffolding, not API. %pyproject_check_import -e '*.tests' -e '*.tests.*' -e '*conftest' %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE.rst %doc README.rst %changelog * Mon Aug 24 2026 Morgan Hough - 2.4.1-1 - Initial package. Runtime dependency of specutils (TOM Toolkit chain).