python-requests: depends on idna now
This commit is contained in:
parent
9fccb8670b
commit
f4e0368481
1 changed files with 11 additions and 12 deletions
|
@ -1,15 +1,13 @@
|
|||
# Template file for 'python-requests'
|
||||
pkgname=python-requests
|
||||
version=2.12.1
|
||||
revision=1
|
||||
revision=2
|
||||
noarch=yes
|
||||
wrksrc="requests-${version}"
|
||||
build_style="python-module"
|
||||
hostmakedepends="python-setuptools python3-setuptools python-chardet python3-chardet
|
||||
python-urllib3 python3-urllib3"
|
||||
makedepends="${hostmakedepends}"
|
||||
depends="python-chardet python-urllib3 ca-certificates"
|
||||
build_style=python-module
|
||||
pycompile_module="requests"
|
||||
hostmakedepends="python-setuptools python3-setuptools"
|
||||
depends="ca-certificates python-chardet python-urllib3 python-idna"
|
||||
short_desc="Python2 HTTP library for human beings"
|
||||
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||
homepage="http://python-requests.org/"
|
||||
|
@ -22,11 +20,12 @@ pre_build() {
|
|||
rm -f requests/cacert.pem
|
||||
}
|
||||
post_install() {
|
||||
# replace bundled copy of chardet and urllib3
|
||||
for pyver in $py2_ver $py3_ver; do
|
||||
rm -rf ${DESTDIR}/usr/lib/python${pyver}/site-packages/requests/packages/{chardet,urllib3}
|
||||
ln -sf ../../chardet ${DESTDIR}/usr/lib/python${pyver}/site-packages/requests/packages/chardet
|
||||
ln -sf ../../urllib3 ${DESTDIR}/usr/lib/python${pyver}/site-packages/requests/packages/urllib3
|
||||
# replace bundled copy of chardet, urllib3, and idna
|
||||
for py_sitelib in $py2_sitelib $py3_sitelib; do
|
||||
rm -rf ${DESTDIR}/${py_sitelib}/requests/packages/{chardet,urllib3,idna}
|
||||
ln -sf ../../chardet ${DESTDIR}/${py_sitelib}/requests/packages/chardet
|
||||
ln -sf ../../urllib3 ${DESTDIR}/${py_sitelib}/requests/packages/urllib3
|
||||
ln -sf ../../idna ${DESTDIR}/${py_sitelib}/requests/packages/idna
|
||||
done
|
||||
}
|
||||
|
||||
|
@ -34,7 +33,7 @@ python3-requests_package() {
|
|||
noarch=yes
|
||||
pycompile_module="requests"
|
||||
replaces="python3.4-requests>=0"
|
||||
depends="python3-chardet python3-urllib3 ca-certificates"
|
||||
depends="ca-certificates python3-chardet python3-urllib3 python3-idna"
|
||||
short_desc="${short_desc/Python2/Python3}"
|
||||
pkg_install() {
|
||||
vmove usr/lib/python3*
|
||||
|
|
Loading…
Reference in a new issue