2014-07-07 08:17:17 +00:00
|
|
|
# Template file for 'python-urllib3'
|
|
|
|
pkgname=python-urllib3
|
2015-05-06 07:54:56 +00:00
|
|
|
version=1.10.4
|
2014-07-07 08:17:17 +00:00
|
|
|
revision=1
|
|
|
|
noarch=yes
|
2014-09-25 23:06:26 +00:00
|
|
|
wrksrc="urllib3-${version}"
|
|
|
|
build_style=python-module
|
2014-07-07 08:17:17 +00:00
|
|
|
python_versions="2.7 3.4"
|
2014-08-19 00:29:19 +00:00
|
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
2015-02-28 18:49:49 +00:00
|
|
|
depends="python-six"
|
2014-07-07 08:17:17 +00:00
|
|
|
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"
|
2014-09-25 23:06:26 +00:00
|
|
|
distfiles="${PYPI_SITE}/u/urllib3/urllib3-${version}.tar.gz"
|
2015-05-06 07:54:56 +00:00
|
|
|
checksum=52131e6a561466f1206e1a648d9a73dda2a804d0f70e83782bd88494542ded09
|
2015-02-28 18:49:49 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|
2014-07-07 08:17:17 +00:00
|
|
|
|
|
|
|
python3.4-urllib3_package() {
|
|
|
|
noarch=yes
|
2015-02-28 18:49:49 +00:00
|
|
|
depends="python3.4-six"
|
2014-07-07 08:17:17 +00:00
|
|
|
pycompile_version="3.4"
|
|
|
|
pycompile_module="urllib3"
|
|
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/python3.4
|
2015-02-28 18:49:49 +00:00
|
|
|
vlicense ${wrksrc}/LICENSE.txt LICENSE
|
2014-07-07 08:17:17 +00:00
|
|
|
}
|
|
|
|
}
|