mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 08:52:56 +02:00
python-requests: update to 2.17.3
This commit is contained in:
parent
5b02734cac
commit
500c8997d6
2 changed files with 16 additions and 12 deletions
12
srcpkgs/python-requests/patches/use-system-cacerts.patch
Normal file
12
srcpkgs/python-requests/patches/use-system-cacerts.patch
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
--- requests/certs.py.orig 2017-05-29 20:09:29.000000000 +0200
|
||||||
|
+++ requests/certs.py 2017-06-06 13:06:31.803000513 +0200
|
||||||
|
@@ -12,7 +12,8 @@
|
||||||
|
environment, you can change the definition of where() to return a separately
|
||||||
|
packaged CA bundle.
|
||||||
|
"""
|
||||||
|
-from certifi import where
|
||||||
|
+def where():
|
||||||
|
+ return '/etc/ssl/certs/ca-certificates.crt'
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
print(where())
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'python-requests'
|
# Template file for 'python-requests'
|
||||||
pkgname=python-requests
|
pkgname=python-requests
|
||||||
version=2.14.2
|
version=2.17.3
|
||||||
revision=1
|
revision=1
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="requests-${version}"
|
wrksrc="requests-${version}"
|
||||||
|
@ -13,18 +13,10 @@ maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||||
homepage="http://python-requests.org/"
|
homepage="http://python-requests.org/"
|
||||||
license="Apache-2.0"
|
license="Apache-2.0"
|
||||||
distfiles="${PYPI_SITE}/r/requests/requests-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/r/requests/requests-${version}.tar.gz"
|
||||||
checksum=a274abba399a23e8713ffd2b5706535ae280ebe2b8069ee6a941cb089440d153
|
checksum=8d29f97ed1541709b57caddb77bb20592411d7ca10ec4f03275f49ee8456e225
|
||||||
|
|
||||||
post_install() {
|
pre_build() {
|
||||||
# replace bundled copy of cacert, chardet, urllib3, and idna
|
sed -i '/certifi/d' setup.py
|
||||||
for py_sitelib in $py2_sitelib $py3_sitelib; do
|
|
||||||
rm -rf ${DESTDIR}/${py_sitelib}/requests/cacert.pem
|
|
||||||
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
|
|
||||||
ln -sf /etc/ssl/cert.pem ${DESTDIR}/${py_sitelib}/requests/cacert.pem
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
python3-requests_package() {
|
python3-requests_package() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue