%global pypi_name napari-nifti %global dist_name napari_nifti Name: python-%{pypi_name} Version: 0.0.20 Release: 1%{?dist} Summary: NIfTI and NRRD reader and writer plugin for napari License: Apache-2.0 URL: https://github.com/MIC-DKFZ/napari-nifti Source0: %{pypi_source napari_nifti} BuildArch: noarch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros BuildRequires: python3-pyqt6 BuildRequires: python3-napari %global _description %{expand: napari-nifti is a napari plugin from the DKFZ Division of Medical Image Computing that opens and saves NIfTI (.nii, .nii.gz) and NRRD images in napari through MedVol, keeping voxel spacing and orientation.} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} Requires: python3-napari %description -n python3-%{pypi_name} %_description %prep %autosetup -n napari_nifti-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files napari_nifti %check # napari plugins import qtpy; a Qt binding and an offscreen platform let the # import check run headless in mock. export QT_QPA_PLATFORM=offscreen %pyproject_check_import %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %doc README.md %changelog * Tue Nov 03 2026 Morgan Hough - 0.0.20-1 - Initial package; dependency of napari-nninteractive and napari-voxtell.