Files
MSYS2-packages/python-typing_extensions/PKGBUILD
Christoph Reiter 9b64bd6498 python 3.12 rebuilds
2024-07-05 23:01:07 +02:00

40 lines
893 B
Bash

# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
_pyname=typing_extensions
pkgname=python-typing_extensions
pkgver=4.12.2
pkgrel=2
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=('1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8')
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
}