forked from ports/contrib
22 lines
754 B
Plaintext
22 lines
754 B
Plaintext
# Description: Backported and Experimental Type Hints for Python 3.5+
|
|
# URL: https://github.com/python/typing/tree/master/typing_extensions
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: python3-build python3-install
|
|
# Optional: python3-flit-core
|
|
|
|
name=python3-typing_extensions
|
|
version=4.2.0
|
|
release=1
|
|
source=(https://github.com/python/typing/archive/$version/$name-$version.tar.gz)
|
|
|
|
build() {
|
|
cd typing-$version/typing_extensions
|
|
|
|
if prt-get isinst python3-flit-core; then
|
|
/usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
|
|
/usr/bin/python3 -m install --optimize=1 --destdir=$PKG dist/*.whl
|
|
else
|
|
/usr/bin/pip3 install --isolate --root=$PKG --ignore-installed --no-deps typing_extensions
|
|
fi
|
|
}
|