contrib/python3-urllib3/Pkgfile

18 lines
577 B
Plaintext

# Description: HTTP library with thread-safe connection pooling and file post support.
# URL: https://github.com/shazow/urllib3
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: python3-hatchling python3-pyopenssl
name=python3-urllib3
_name=${name#*-}
version=2.0.2
release=1
source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$version.tar.gz)
build() {
cd $_name-$version
/usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
/usr/bin/python3 -m installer --compile-bytecode 2 --destdir=$PKG dist/*.whl
}