void-packages/srcpkgs/python-tornado/template

37 lines
1.1 KiB
Bash

# Template file for 'python-tornado'
pkgname=python-tornado
version=4.5.2
revision=1
wrksrc="tornado-${version}"
build_style=python-module
pycompile_module="tornado"
hostmakedepends="python-setuptools python3-setuptools"
makedepends="python-devel python3-devel"
depends="ca-certificates python-singledispatch python-backports_abc"
short_desc="Python2 web framework and asynchronous networking library"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="http://www.tornadoweb.org/"
license="Apache-2.0"
distfiles="${PYPI_SITE}/t/tornado/tornado-${version}.tar.gz"
checksum=1fb8e494cd46c674d86fac5885a3ff87b0e283937a47d74eb3c02a48c9e89ad0
pre_build() {
# use system ca-certificates
sed -i "/install_requires.append('certifi')/d" setup.py
}
python3-tornado_package() {
pycompile_module="tornado"
replaces="python3.4-tornado>=0"
depends="ca-certificates"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}
python3.4-tornado_package() {
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-tornado>=${version}_${revision}"
}