%global pypi_name napari-nninteractive %global dist_name napari_nninteractive Name: python-%{pypi_name} Version: 2.5.4 Release: 1%{?dist} Summary: nnInteractive promptable 3D segmentation plugin for napari # The code is Apache-2.0. The pretrained nnInteractive weights it can use are # CC-BY-NC-SA-4.0 and are not packaged (see python-nninteractive.spec). License: Apache-2.0 URL: https://github.com/MIC-DKFZ/napari-nninteractive Source0: %{pypi_source napari_nninteractive} BuildArch: noarch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros BuildRequires: python3-pyqt6 BuildRequires: python3-napari %global _description %{expand: napari-nninteractive brings nnInteractive's promptable 3D segmentation to the napari viewer: points, scribbles, boxes and lassos placed in napari become a 3D segmentation, refined as further prompts arrive. By default it drives an nninteractive-server through the torch-free nninteractive client, which can be on another machine. For inference on this machine install python3-nninteractive (Recommended here), which downloads the pretrained weights on first use; those weights are CC-BY-NC-SA-4.0 (non-commercial). No weights are included in this package.} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} Requires: python3-napari # Local inference backend (torch + nnU-Net); upstream's [local] extra. Recommends: python3-nninteractive %description -n python3-%{pypi_name} %_description %prep %autosetup -n napari_nninteractive-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files napari_nninteractive %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 - 2.5.4-1 - Initial package (napari front end for the nnInteractive stack already in this COPR).