35 lines
1008 B
Bash
35 lines
1008 B
Bash
# Template file for 'python-urllib3'
|
|
pkgname=python-urllib3
|
|
version=1.25.8
|
|
revision=1
|
|
archs=noarch
|
|
wrksrc="urllib3-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-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=87716c2d2a7121198ebcb7ce7cccf6ce5e9ba539041cfbaeecfb641dc0bf6acc
|
|
|
|
post_install() {
|
|
# replace bundled copy of six
|
|
for pyver in $py2_ver $py3_ver; do
|
|
rm -f ${DESTDIR}/usr/lib/python${pyver}/site-packages/urllib3/packages/six.py
|
|
ln -sf ../../six.py ${DESTDIR}/usr/lib/python${pyver}/site-packages/urllib3/packages/six.py
|
|
done
|
|
vlicense LICENSE.txt
|
|
}
|
|
|
|
python3-urllib3_package() {
|
|
archs=noarch
|
|
depends="python3-six"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE.txt
|
|
}
|
|
}
|