Files
MSYS2-packages/python-typing_extensions/PKGBUILD
2025-06-19 07:24:52 +02:00

40 lines
903 B
Bash

# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
_pyname=typing_extensions
pkgname=python-typing_extensions
pkgver=4.14.0
pkgrel=1
pkgdesc='Backported and Experimental Type Hints for Python 3.8+'
arch=(any)
url=https://github.com/python/typing_extensions
msys2_references=(
'purl: pkg: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=('8676b788e32f02ab42d9e7c61324048ae4c6d844a399eebace3d4979d75ceef4')
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
}