35 lines
1 KiB
Bash
35 lines
1 KiB
Bash
# Template file for 'python-urllib3'
|
|
pkgname=python-urllib3
|
|
version=1.26.4
|
|
revision=1
|
|
wrksrc="urllib3-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-six"
|
|
checkdepends="python-pytest python3-pytest python-six python3-six"
|
|
short_desc="HTTP library with thread-safe connection pooling (Python2)"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
license="MIT"
|
|
homepage="https://urllib3.readthedocs.io/"
|
|
distfiles="${PYPI_SITE}/u/urllib3/urllib3-${version}.tar.gz"
|
|
checksum=e7b021f7241115872f92f43c6508082facffbd1c048e3c6e2bb9c2a157e28937
|
|
# Checks depend on unpackaged "trustme"
|
|
make_check=no
|
|
|
|
post_install() {
|
|
for sitelib in ${py3_sitelib} ${py2_sitelib}; do
|
|
rm ${DESTDIR}/${sitelib}/urllib3/packages/six.py
|
|
ln -sf ../../six.py ${DESTDIR}/${sitelib}/urllib3/packages/six.py
|
|
done
|
|
|
|
vlicense LICENSE.txt
|
|
}
|
|
|
|
python3-urllib3_package() {
|
|
depends="python3-six"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE.txt
|
|
}
|
|
}
|