File python-typing-extensions.spec of Package python-typing-extensions

Name:           python-typing-extensions
Version:        4.15.0
Release:        1%{?dist}
Summary:        Backported and Experimental Type Hints for Python

License:        PSF-2.0
URL:            https://pypi.org/project/typing-extensions/
Source:         https://files.pythonhosted.org/packages/source/t/typing_extensions/typing_extensions-%{version}.tar.gz

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-test

%global _description %{expand:
The typing_extensions module serves two related purposes:

- Enable use of new type system features on older Python versions. For example,
  typing.TypeGuard is new in Python 3.10, but typing_extensions allows users on
  previous Python versions to use it too.

- Enable experimentation with new type system PEPs before they are accepted and
  added to the typing module.

typing_extensions is treated specially by static type checkers such as mypy and
pyright. Objects defined in typing_extensions are treated the same way as
equivalent forms in typing.}

%description %_description


%package -n python3-typing-extensions
Summary:       %{summary}

%description -n python3-typing-extensions %_description


%prep
%autosetup -p1 -n typing_extensions-%{version}


%generate_buildrequires
%pyproject_buildrequires


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files -l typing_extensions


%check
cd src
%{py3_test_envvars} %{python3} -m unittest discover


%files -n python3-typing-extensions -f %{pyproject_files}
%doc CHANGELOG.md
%doc README.md