2014-07-07 08:17:17 +00:00
|
|
|
# Template file for 'python-urllib3'
|
|
|
|
pkgname=python-urllib3
|
2014-08-19 00:29:19 +00:00
|
|
|
version=1.9
|
2014-07-07 08:17:17 +00:00
|
|
|
revision=1
|
|
|
|
noarch=yes
|
|
|
|
wrksrc="${pkgname#*-}-${version}"
|
|
|
|
build_style="python-module"
|
|
|
|
python_versions="2.7 3.4"
|
2014-08-19 00:29:19 +00:00
|
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
|
|
makedepends="python-backports-ssl-match-hostname python-six python3.4-six"
|
2014-07-07 08:17:17 +00:00
|
|
|
depends="python python-backports-ssl-match-hostname python-six ca-certificates"
|
|
|
|
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-08-19 00:29:19 +00:00
|
|
|
distfiles="https://pypi.python.org/packages/source/u/urllib3/urllib3-${version}.tar.gz"
|
|
|
|
checksum=4e400b2e2f53652dd0d8062ca5ecc425b6af6e96989b8d31f5dd875186aa247b
|
2014-07-07 08:17:17 +00:00
|
|
|
|
|
|
|
python3.4-urllib3_package() {
|
|
|
|
noarch=yes
|
|
|
|
depends="python3.4 python3.4-six ca-certificates"
|
|
|
|
pycompile_version="3.4"
|
|
|
|
pycompile_module="urllib3"
|
|
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/python3.4
|
|
|
|
}
|
|
|
|
}
|