contrib/python3-urllib3/Pkgfile

18 lines
578 B
Plaintext
Raw Normal View History

2023-09-20 17:23:42 +02:00
# Description: HTTP library with thread-safe connection pooling and file post support
2018-03-15 13:14:59 +01:00
# URL: https://github.com/shazow/urllib3
2023-07-07 19:03:41 +02:00
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: python3-hatchling python3-pyopenssl
2018-03-15 13:14:59 +01:00
name=python3-urllib3
2021-03-20 05:44:50 +01:00
_name=${name#*-}
2023-09-20 17:23:42 +02:00
version=2.0.5
2018-03-15 13:14:59 +01:00
release=1
2021-03-20 05:44:50 +01:00
source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$version.tar.gz)
2018-03-15 13:14:59 +01:00
build() {
2023-07-07 19:03:41 +02:00
cd $_name-$version
2023-07-07 19:03:41 +02:00
/usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
/usr/bin/python3 -m installer --compile-bytecode 2 --destdir=$PKG dist/*.whl
2018-03-15 13:14:59 +01:00
}