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'
|
# Template file for 'python-requests'
|
||||||
pkgname=python-requests
|
pkgname=python-requests
|
||||||
version=2.12.1
|
version=2.12.1
|
||||||
revision=1
|
revision=2
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="requests-${version}"
|
wrksrc="requests-${version}"
|
||||||
build_style="python-module"
|
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"
|
|
||||||
pycompile_module="requests"
|
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"
|
short_desc="Python2 HTTP library for human beings"
|
||||||
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||||
homepage="http://python-requests.org/"
|
homepage="http://python-requests.org/"
|
||||||
|
@ -22,11 +20,12 @@ pre_build() {
|
||||||
rm -f requests/cacert.pem
|
rm -f requests/cacert.pem
|
||||||
}
|
}
|
||||||
post_install() {
|
post_install() {
|
||||||
# replace bundled copy of chardet and urllib3
|
# replace bundled copy of chardet, urllib3, and idna
|
||||||
for pyver in $py2_ver $py3_ver; do
|
for py_sitelib in $py2_sitelib $py3_sitelib; do
|
||||||
rm -rf ${DESTDIR}/usr/lib/python${pyver}/site-packages/requests/packages/{chardet,urllib3}
|
rm -rf ${DESTDIR}/${py_sitelib}/requests/packages/{chardet,urllib3,idna}
|
||||||
ln -sf ../../chardet ${DESTDIR}/usr/lib/python${pyver}/site-packages/requests/packages/chardet
|
ln -sf ../../chardet ${DESTDIR}/${py_sitelib}/requests/packages/chardet
|
||||||
ln -sf ../../urllib3 ${DESTDIR}/usr/lib/python${pyver}/site-packages/requests/packages/urllib3
|
ln -sf ../../urllib3 ${DESTDIR}/${py_sitelib}/requests/packages/urllib3
|
||||||
|
ln -sf ../../idna ${DESTDIR}/${py_sitelib}/requests/packages/idna
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,7 +33,7 @@ python3-requests_package() {
|
||||||
noarch=yes
|
noarch=yes
|
||||||
pycompile_module="requests"
|
pycompile_module="requests"
|
||||||
replaces="python3.4-requests>=0"
|
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}"
|
short_desc="${short_desc/Python2/Python3}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/lib/python3*
|
vmove usr/lib/python3*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue