43 lines
1.3 KiB
Bash
43 lines
1.3 KiB
Bash
# Template file for 'python-urllib3'
|
|
pkgname=python-urllib3
|
|
version=1.20
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="urllib3-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-six"
|
|
pycompile_module="urllib3"
|
|
short_desc="HTTP library with thread-safe connection pooling (Python2)"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="https://urllib3.readthedocs.io/"
|
|
license="MIT"
|
|
distfiles="${PYPI_SITE}/u/urllib3/urllib3-${version}.tar.gz"
|
|
checksum=97ef2b6e2878d84c0126b9f4e608e37a951ca7848e4855a7f7f4437d5c34a72f
|
|
|
|
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 LICENSE
|
|
}
|
|
|
|
python3-urllib3_package() {
|
|
noarch=yes
|
|
depends="python3-six"
|
|
pycompile_module="urllib3"
|
|
replaces="python3.4-urllib3>=0"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|
|
}
|
|
python3.4-urllib3_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-urllib3>=${version}_${revision}"
|
|
}
|