38 lines
1.1 KiB
Bash
38 lines
1.1 KiB
Bash
# Template file for 'python-urllib3'
|
|
pkgname=python-urllib3
|
|
version=1.13.1
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="urllib3-${version}"
|
|
build_style=python-module
|
|
python_versions="2.7 3.4"
|
|
hostmakedepends="python-setuptools python3.4-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://github.com/shazow/urllib3"
|
|
license="MIT"
|
|
distfiles="${PYPI_SITE}/u/urllib3/urllib3-${version}.tar.gz"
|
|
checksum=6eba1d713f8552e37ac4081c6bdf7be9f5a79f58447aed762bf24cc34c5e3983
|
|
|
|
post_install() {
|
|
# replace bundled copy of six
|
|
for pyver in $python_versions; 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.4-urllib3_package() {
|
|
noarch=yes
|
|
depends="python3.4-six"
|
|
pycompile_version="3.4"
|
|
pycompile_module="urllib3"
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3.4
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|
|
}
|