%global pypi_name django-stubs-ext %global pypi_dist django_stubs_ext Name: python-%{pypi_name} Version: 6.1.0 Release: 1%{?dist} Summary: Monkey-patching and extensions for django-stubs License: MIT URL: https://github.com/typeddjango/django-stubs Source0: %{pypi_source %{pypi_dist} %{version}} # Fedora 44 ships Python 3.14. django_stubs_ext/settings.py unconditionally # imports typing.type_check_only, but that name is a typeshed-only marker # that has never actually existed in the real CPython typing module on any # released version (upstream tracking issue: typeddjango/django-stubs#756). # Add a runtime no-op fallback so the module can actually be imported. Patch0: python-django-stubs-ext-fix-runtime-type_check_only.patch BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: django-stubs-ext provides runtime monkey-patches and typing helpers used alongside django-stubs to make Django's generic classes (QuerySet, Manager, etc.) work correctly with type checkers. It is a runtime dependency of django-tasks and, transitively, TOM Toolkit.} %description %{_description} %package -n python3-%{pypi_name} Summary: %{summary} Requires: python3-django Requires: python3-typing-extensions %description -n python3-%{pypi_name} %{_description} %prep %autosetup -n %{pypi_dist}-%{version} -p1 %generate_buildrequires %pyproject_buildrequires -r %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{pypi_dist} %check %pyproject_check_import %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE.md %doc README.md %changelog * Mon Aug 24 2026 Morgan Hough - 6.1.0-1 - Initial package. Runtime dependency of python3-django-tasks (TOM Toolkit chain). - Patch settings.py: typing.type_check_only doesn't exist on Fedora 44's Python 3.14 (upstream typeddjango/django-stubs#756); add runtime fallback.