diff options
author | Marcell Meszaros | 2022-06-14 10:25:46 +0200 |
---|---|---|
committer | Marcell Meszaros | 2022-06-14 10:25:46 +0200 |
commit | f10e33e363dbfc598f0e40b77232359a51aca142 (patch) | |
tree | c4a1f3811cc59db0ae8623d277883fd91b8c5653 | |
parent | f76529d4382110685628bca331b175daa08c27f3 (diff) | |
download | aur-f10e33e363dbfc598f0e40b77232359a51aca142.tar.gz |
add back earlier optdepend: python2-ndg-httpsclient
-rw-r--r-- | .SRCINFO | 1 | ||||
-rw-r--r-- | PKGBUILD | 12 |
2 files changed, 9 insertions, 4 deletions
@@ -10,6 +10,7 @@ pkgbase = python2-requests depends = python2-chardet depends = python2-idna depends = python2-urllib3 + optdepends = python2-ndg-httpsclient: HTTPS requests with SNI support optdepends = python2-pysocks: SOCKS proxy support source = https://github.com/psf/requests/archive/v2.27.1/python2-requests-2.27.1.tar.gz source = certs.patch @@ -24,7 +24,10 @@ makedepends=('python2-setuptools') # 'python2-pysocks' # 'python2-trustme' # ) -optdepends=('python2-pysocks: SOCKS proxy support') +optdepends=( + 'python2-ndg-httpsclient: HTTPS requests with SNI support' + 'python2-pysocks: SOCKS proxy support' +) _sourcedirname="${_name}-${pkgver}" source=("https://github.com/psf/requests/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz" 'certs.patch') @@ -41,9 +44,10 @@ prepare() { patch -p1 -i "${srcdir}/certs.patch" # Change hashbangs to python2 - sed -e 's+^\(#!/usr/bin/env python\)+\12+' \ - -i 'requests/certs.py' \ - -i 'setup.py' + sed -e 's|#![ ]*/usr/bin/python$|#!/usr/bin/python2|' \ + -e 's|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|' \ + -e 's|#![ ]*/bin/env python$|#!/usr/bin/env python2|' \ + -i $(find . -name '*.py') } build() { |