extra/python-urllib3 to 1.26.7-2

This commit is contained in:
David Beauchamp 2021-11-29 14:54:06 -05:00
parent 06f318b445
commit b538e705b4

View file

@ -8,16 +8,16 @@
# - don't build docs on v5, can't build new furo
pkgbase=python-urllib3
pkgname=(python-urllib3 python2-urllib3 python-urllib3-doc)
pkgname=(python-urllib3 python-urllib3-doc)
pkgver=1.26.7
pkgrel=1
pkgrel=2
pkgdesc="HTTP library with thread-safe connection pooling and file post support"
arch=("any")
url="https://github.com/urllib3/urllib3"
license=("MIT")
makedepends=('python-setuptools' 'python2-setuptools' 'python-sphinx' 'python-ndg-httpsclient'
'python2-ndg-httpsclient' 'python-pyasn1' 'python2-pyasn1' 'python-pyopenssl'
'python2-pyopenssl' 'python-pysocks' 'python2-pysocks' 'python-mock' 'python2-mock'
makedepends=('python-setuptools' 'python-sphinx' 'python-ndg-httpsclient'
'python-pyasn1' 'python-pyopenssl'
'python-pysocks' 'python-mock'
'python-brotli' 'python-sphinx-furo')
checkdepends=('python-pytest-runner' 'python-tornado' 'python-nose' 'python-psutil' 'python-trustme'
'python-gcp-devrel-py-tools' 'python-flaky' 'python-dateutil')
@ -35,9 +35,6 @@ build() {
cd "$srcdir"/urllib3-$pkgver
python setup.py build
cd "$srcdir"/urllib3-$pkgver-py2
python2 setup.py build
cd "$srcdir"/urllib3-$pkgver/docs
[[ $CARCH != "arm" ]] && make html || :
}
@ -60,16 +57,6 @@ package_python-urllib3() {
install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
}
package_python2-urllib3() {
depends=('python2')
optdepends=('python2-pysocks: SOCKS support'
'python2-pyopenssl: security support')
cd urllib3-$pkgver-py2
python2 setup.py install --root="$pkgdir"
install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
}
package_python-urllib3-doc() {
pkgdesc="urllib3 Documentation"