6528f96344
Add patch to use system python-six and python-backports-ssl-match-hostname (python2-only).
30 lines
1 KiB
Text
30 lines
1 KiB
Text
# Template file for 'python-urllib3'
|
|
pkgname=python-urllib3
|
|
version=1.8.3
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="${pkgname#*-}-${version}"
|
|
build_style="python-module"
|
|
python_versions="2.7 3.4"
|
|
hostmakedepends="python-devel python3.4-devel"
|
|
makedepends="${hostmakedepends} python-backports-ssl-match-hostname
|
|
python-six python3.4-six"
|
|
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"
|
|
distfiles="https://pypi.python.org/packages/source/u/${pkgname#*-}/${pkgname#*-}-${version}.tar.gz"
|
|
checksum=4b162cffb6c7dde47b47ecee741f8a00953512541241e61d0f8292107a865426
|
|
|
|
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
|
|
}
|
|
}
|