2021-06-14 19:51:54 +00:00
|
|
|
# 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
|
2022-02-12 16:07:59 +01:00
|
|
|
# Depends on: python3-build python3-install
|
|
|
|
# Optional: python3-flit-core
|
2021-06-14 19:51:54 +00:00
|
|
|
|
|
|
|
name=python3-typing_extensions
|
2022-04-18 19:01:50 +02:00
|
|
|
version=4.2.0
|
2021-06-14 19:51:54 +00:00
|
|
|
release=1
|
|
|
|
source=(https://github.com/python/typing/archive/$version/$name-$version.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd typing-$version/typing_extensions
|
2021-11-15 18:20:54 +01:00
|
|
|
|
2022-02-12 16:07:59 +01:00
|
|
|
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
|
2021-06-14 19:51:54 +00:00
|
|
|
}
|