# Maintainer: Christoph Reiter _pyname=typing_extensions pkgname=python-typing_extensions pkgver=4.9.0 pkgrel=1 pkgdesc='Backported and Experimental Type Hints for Python 3.8+' arch=(any) url=https://github.com/python/typing_extensions msys2_references=( 'pypi: typing-extensions' ) license=('spdx:PSF-2.0') depends=(python) makedepends=( python-build python-flit-core python-installer ) source=("https://pypi.python.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz") sha256sums=('23478f88c37f27d76ac8aee6c905017a143b0b1b886c3c9f66bc2fd94f9f5783') build() { cd "${_pyname}-${pkgver}" python -m build --wheel --skip-dependency-check --no-isolation } check() { cd "${_pyname}-${pkgver}" python -m unittest discover src } package() { cd "${_pyname}-${pkgver}" python -m installer --destdir="${pkgdir}" dist/*.whl }