mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-16 23:57:11 +00:00
extra/python-urllib3 to 1.26.7-2
This commit is contained in:
parent
06f318b445
commit
b538e705b4
1 changed files with 5 additions and 18 deletions
|
@ -8,16 +8,16 @@
|
||||||
# - don't build docs on v5, can't build new furo
|
# - don't build docs on v5, can't build new furo
|
||||||
|
|
||||||
pkgbase=python-urllib3
|
pkgbase=python-urllib3
|
||||||
pkgname=(python-urllib3 python2-urllib3 python-urllib3-doc)
|
pkgname=(python-urllib3 python-urllib3-doc)
|
||||||
pkgver=1.26.7
|
pkgver=1.26.7
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="HTTP library with thread-safe connection pooling and file post support"
|
pkgdesc="HTTP library with thread-safe connection pooling and file post support"
|
||||||
arch=("any")
|
arch=("any")
|
||||||
url="https://github.com/urllib3/urllib3"
|
url="https://github.com/urllib3/urllib3"
|
||||||
license=("MIT")
|
license=("MIT")
|
||||||
makedepends=('python-setuptools' 'python2-setuptools' 'python-sphinx' 'python-ndg-httpsclient'
|
makedepends=('python-setuptools' 'python-sphinx' 'python-ndg-httpsclient'
|
||||||
'python2-ndg-httpsclient' 'python-pyasn1' 'python2-pyasn1' 'python-pyopenssl'
|
'python-pyasn1' 'python-pyopenssl'
|
||||||
'python2-pyopenssl' 'python-pysocks' 'python2-pysocks' 'python-mock' 'python2-mock'
|
'python-pysocks' 'python-mock'
|
||||||
'python-brotli' 'python-sphinx-furo')
|
'python-brotli' 'python-sphinx-furo')
|
||||||
checkdepends=('python-pytest-runner' 'python-tornado' 'python-nose' 'python-psutil' 'python-trustme'
|
checkdepends=('python-pytest-runner' 'python-tornado' 'python-nose' 'python-psutil' 'python-trustme'
|
||||||
'python-gcp-devrel-py-tools' 'python-flaky' 'python-dateutil')
|
'python-gcp-devrel-py-tools' 'python-flaky' 'python-dateutil')
|
||||||
|
@ -35,9 +35,6 @@ build() {
|
||||||
cd "$srcdir"/urllib3-$pkgver
|
cd "$srcdir"/urllib3-$pkgver
|
||||||
python setup.py build
|
python setup.py build
|
||||||
|
|
||||||
cd "$srcdir"/urllib3-$pkgver-py2
|
|
||||||
python2 setup.py build
|
|
||||||
|
|
||||||
cd "$srcdir"/urllib3-$pkgver/docs
|
cd "$srcdir"/urllib3-$pkgver/docs
|
||||||
[[ $CARCH != "arm" ]] && make html || :
|
[[ $CARCH != "arm" ]] && make html || :
|
||||||
}
|
}
|
||||||
|
@ -60,16 +57,6 @@ package_python-urllib3() {
|
||||||
install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
|
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() {
|
package_python-urllib3-doc() {
|
||||||
pkgdesc="urllib3 Documentation"
|
pkgdesc="urllib3 Documentation"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue