%global pypi_name batchgenerators %global import_name batchgenerators Name: python-%{pypi_name} Version: 0.25.6 Release: 1%{?dist} Summary: Framework for data augmentation of 2D and 3D medical images License: Apache-2.0 URL: https://github.com/MIC-DKFZ/batchgenerators Source0: %{pypi_source %{pypi_name}} BuildArch: noarch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros %global _description %{expand: batchgenerators is the data-augmentation framework developed at the DKFZ Division of Medical Image Computing. It provides multi-threaded data loading and a large library of spatial, intensity, noise, resampling and cropping transforms that operate on 2D and 3D images, designed for the memory and dimensionality constraints of medical imaging rather than natural images. It underpins the nnU-Net family of segmentation frameworks.} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %_description %prep %autosetup -n %{pypi_name}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{import_name} %check # batchgenerators/examples/* are standalone demo scripts shipped inside the # package; they import torch and SimpleITK, which the library itself does not # depend on (it is numpy-based). Exclude them from the import check. %pyproject_check_import -e '*.examples.*' %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %doc README.md %changelog * Fri Oct 30 2026 Morgan Hough - 0.25.6-1 - Update to 0.25.6. - Drop the %%prep edit that removed the future and unittest2 runtime dependencies: upstream's pyproject.toml no longer lists either. * Sat Jul 18 2026 Morgan Hough - 0.25.3-1 - Initial package. Augmentation backbone of the nnU-Net stack, part of the nnInteractive dependency chain. Drops the vestigial Python 2 era future and unittest2 runtime dependencies (neither is packaged in Fedora and neither is needed on Python 3; see the comment in %%prep).