%global common_description %{expand: prompt_toolkit is a library for building powerful interactive command line applications in Python.} Name: python-prompt-toolkit Version: 3.0.41 Release: 1%{?dist} Summary: Library for building powerful interactive command line applications in Python License: BSD-3-Clause URL: https://github.com/prompt-toolkit/python-prompt-toolkit Source: %{pypi_source prompt_toolkit} BuildArch: noarch %description %{common_description} %package -n python%{python3_pkgversion}-prompt-toolkit Summary: %{summary} BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-pytest # https://github.com/jonathanslenders/python-prompt-toolkit/issues/94 Recommends: python%{python3_pkgversion}-pygments %description -n python%{python3_pkgversion}-prompt-toolkit %{common_description} %prep %autosetup -n prompt_toolkit-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files prompt_toolkit %check %pytest %files -n python%{python3_pkgversion}-prompt-toolkit -f %{pyproject_files} %doc README.rst AUTHORS.rst CHANGELOG %changelog