void-packages/srcpkgs/python3-urllib3/template

27 lines
813 B
Bash

# Template file for 'python3-urllib3'
pkgname=python3-urllib3
version=1.26.12
revision=2
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="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://urllib3.readthedocs.io/"
distfiles="${PYPI_SITE}/u/urllib3/urllib3-${version}.tar.gz"
checksum=3fa96cf423e6987997fc326ae8df396db2a8b7c667747d47ddd8ecba91f4a74e
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
}