void-packages/srcpkgs/python-requests/template
Alessio Sergi 4e3e475dd5 python-requests: add python3.4 subpkg
Add patch to use system ca-certificates, python-chardet and python-urllib3.
2014-07-07 10:30:00 +02:00

35 lines
1 KiB
Plaintext

# Template file for 'python-requests'
pkgname=python-requests
version=2.3.0
revision=2
noarch=yes
wrksrc="requests-${version}"
build_style="python-module"
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
makedepends="python-devel python3.4-devel python-chardet python3.4-chardet
python-urllib3 python3.4-urllib3"
depends="python python-chardet python-urllib3 ca-certificates"
pycompile_module="requests"
short_desc="Python HTTP for Humans (Python2)"
maintainer="Steven R <dev@styez.com>"
homepage="http://docs.python-requests.org/en/latest/"
license="Apache-2.0"
distfiles="https://pypi.python.org/packages/source/r/requests/requests-${version}.tar.gz"
checksum=1c1473875d846fe563d70868acf05b1953a4472f4695b7b3566d1d978957b8fc
pre_build() {
rm -rf requests.egg-info
}
python3.4-requests_package() {
noarch=yes
depends="python3.4 python3.4-chardet python3.4-urllib3 ca-certificates"
pycompile_version="3.4"
pycompile_module="requests"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/lib/python3.4
}
}