backports/py3-typing-extensions: new aport
Some checks failed
/ lint (pull_request) Failing after 27s
/ deploy-x86_64 (pull_request) Has been skipped
/ build-x86_64 (pull_request) Failing after 49s
/ deploy-aarch64 (pull_request) Has been skipped
/ build-aarch64 (pull_request) Failing after 1m40s

This commit is contained in:
Antoine Martin 2024-12-27 23:48:46 -05:00
parent 181d8f8cf2
commit 5120320045
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -0,0 +1,35 @@
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-typing-extensions
pkgver=4.12.2
pkgrel=0
pkgdesc="Backported and Experimental Type Hints for Python 3.5+"
url="https://github.com/python/typing_extensions"
arch="noarch"
license="Python-2.0"
makedepends="py3-gpep517 py3-flit-core"
checkdepends="python3-tests"
subpackages="$pkgname-pyc"
source="https://github.com/python/typing_extensions/archive/$pkgver/typing_extensions-$pkgver.tar.gz"
builddir="$srcdir/typing_extensions-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
.testenv/bin/python3 src/test_typing_extensions.py
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/typing_extensions-$pkgver-py3-none-any.whl
}
sha512sums="
925f5936faeec2a799b42e555900fa7121fb3841f80dfbbdc931abe76b1ea6e600c5fe9b1f91dfb43ae049d60bc7ed9f12e2c25be6f9bcc7b32bbbbdda3055d6 typing_extensions-4.12.2.tar.gz
"