Name: python-typelets Version: 1.1 Release: %autorelease Summary: Type hints and utility objects for Python and Django projects License: MIT URL: https://typelets.readthedocs.io/ Source: %{pypi_source typelets} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(pytest) %global _description %{expand: Typelets is a Python typing utility module designed to augment some of the types provided in Python and third-party libraries.} %description %_description %package -n python3-typelets Summary: %{summary} %description -n python3-typelets %_description %prep %autosetup -p1 -n typelets-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l typelets %check # We ignore django dependencies, because # - Upstream project decided to not declare extras # - RBTools does not use and should not require django %pyproject_check_import -e 'typelets.django*' %pytest %files -n python3-typelets -f %{pyproject_files} %changelog %autochangelog