# Template file for 'python-requests' pkgname=python-requests version=2.26.0 revision=2 wrksrc="requests-${version}" build_style=python-module hostmakedepends="python-setuptools python3-setuptools" depends="ca-certificates python-chardet python-urllib3 python-idna" short_desc="Python2 HTTP library for human beings" maintainer="Alessio Sergi " license="Apache-2.0" homepage="https://python-requests.org/" changelog="https://raw.githubusercontent.com/psf/requests/master/HISTORY.md" distfiles="${PYPI_SITE}/r/requests/requests-${version}.tar.gz" checksum=b8aa58f8cf793ffd8782d3d8cb19e66ef36f7aba4353eec859e74678b01b07a7 make_check=no # tests are broken for python2 requests post_patch() { vsed -i '/certifi/d' setup.py } python3-requests_package() { depends="ca-certificates python3-charset-normalizer python3-urllib3 python3-idna" short_desc="${short_desc/Python2/Python3}" pkg_install() { vmove usr/lib/python3* } }