python-requests: update to 2.12.1

This commit is contained in:
Alessio Sergi 2016-11-17 18:17:12 +01:00
parent 1dfc136ddf
commit 155dbdfffe
1 changed files with 4 additions and 5 deletions

View File

@ -1,12 +1,11 @@
# Template file for 'python-requests'
pkgname=python-requests
version=2.12.0
version=2.12.1
revision=1
noarch=yes
wrksrc="requests-${version}"
build_style="python-module"
hostmakedepends="
python-setuptools python3-setuptools python-chardet python3-chardet
hostmakedepends="python-setuptools python3-setuptools python-chardet python3-chardet
python-urllib3 python3-urllib3"
makedepends="${hostmakedepends}"
depends="python-chardet python-urllib3 ca-certificates"
@ -16,7 +15,7 @@ maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="http://python-requests.org/"
license="Apache-2.0"
distfiles="${PYPI_SITE}/r/requests/requests-${version}.tar.gz"
checksum=57b6c314a2c5f014dce634a0e1eeeb1707741b2e30bc7fee9c5b01fa216d57a3
checksum=2109ecea94df90980be040490ff1d879971b024861539abb00054062388b612e
pre_build() {
# remove bundled cacerts
@ -24,7 +23,7 @@ pre_build() {
}
post_install() {
# replace bundled copy of chardet and urllib3
for pyver in $python_versions; do
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