void-packages/srcpkgs/python3-urllib3/template

28 lines
841 B
Bash

# 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
}