python3-urllib3: update to 1.26.7.
* remove python2 version * enable tests
This commit is contained in:
parent
e449d17261
commit
b12e747fe4
3 changed files with 27 additions and 35 deletions
|
@ -1,34 +0,0 @@
|
||||||
# Template file for 'python-urllib3'
|
|
||||||
pkgname=python-urllib3
|
|
||||||
version=1.26.6
|
|
||||||
revision=2
|
|
||||||
wrksrc="urllib3-${version}"
|
|
||||||
build_style=python-module
|
|
||||||
hostmakedepends="python-setuptools python3-setuptools"
|
|
||||||
depends="python-six"
|
|
||||||
short_desc="HTTP library with thread-safe connection pooling (Python2)"
|
|
||||||
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
||||||
license="MIT"
|
|
||||||
homepage="https://urllib3.readthedocs.io/"
|
|
||||||
distfiles="${PYPI_SITE}/u/urllib3/urllib3-${version}.tar.gz"
|
|
||||||
checksum=f57b4c16c62fa2760b7e3d97c35b255512fb6b59a259730f36ba32ce9f8e342f
|
|
||||||
# Checks depend on unpackaged "trustme"
|
|
||||||
make_check=no
|
|
||||||
|
|
||||||
post_install() {
|
|
||||||
for sitelib in ${py3_sitelib} ${py2_sitelib}; do
|
|
||||||
rm ${DESTDIR}/${sitelib}/urllib3/packages/six.py
|
|
||||||
ln -sf ../../six.py ${DESTDIR}/${sitelib}/urllib3/packages/six.py
|
|
||||||
done
|
|
||||||
|
|
||||||
vlicense LICENSE.txt
|
|
||||||
}
|
|
||||||
|
|
||||||
python3-urllib3_package() {
|
|
||||||
depends="python3-six"
|
|
||||||
short_desc="${short_desc/Python2/Python3}"
|
|
||||||
pkg_install() {
|
|
||||||
vmove usr/lib/python3*
|
|
||||||
vlicense LICENSE.txt
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1 +0,0 @@
|
||||||
python-urllib3
|
|
27
srcpkgs/python3-urllib3/template
Normal file
27
srcpkgs/python3-urllib3/template
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
# Template file for 'python3-urllib3'
|
||||||
|
pkgname=python3-urllib3
|
||||||
|
version=1.26.7
|
||||||
|
revision=1
|
||||||
|
wrksrc="urllib3-${version}"
|
||||||
|
build_style=python3-module
|
||||||
|
hostmakedepends="python3-setuptools"
|
||||||
|
depends="python3-six"
|
||||||
|
checkdepends="python3-pytest python3-trustme python3-mock python3-pysocks
|
||||||
|
python3-tornado python3-dateutil"
|
||||||
|
short_desc="HTTP library with thread-safe connection pooling"
|
||||||
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||||
|
license="MIT"
|
||||||
|
homepage="https://urllib3.readthedocs.io/"
|
||||||
|
distfiles="${PYPI_SITE}/u/urllib3/urllib3-${version}.tar.gz"
|
||||||
|
checksum=4987c65554f7a2dbf30c18fd48778ef124af6fab771a377103da0585e2336ece
|
||||||
|
|
||||||
|
pre_check() {
|
||||||
|
rm test/test_retry{,_deprecated}.py # FIXME
|
||||||
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
rm ${DESTDIR}/${py3_sitelib}/urllib3/packages/six.py
|
||||||
|
ln -sf ../../six.py ${DESTDIR}/${py3_sitelib}/urllib3/packages/six.py
|
||||||
|
|
||||||
|
vlicense LICENSE.txt
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue