31 lines
921 B
Bash
31 lines
921 B
Bash
# Template file for 'python-tornado'
|
|
pkgname=python-tornado
|
|
version=5.1.1
|
|
revision=2
|
|
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>"
|
|
license="Apache-2.0"
|
|
homepage="http://www.tornadoweb.org/"
|
|
distfiles="${PYPI_SITE}/t/tornado/tornado-${version}.tar.gz"
|
|
checksum=4e5158d97583502a7e2739951553cbd88a72076f152b4b11b64b9a10c4c49409
|
|
|
|
pre_build() {
|
|
# use system ca-certificates
|
|
sed -i "/install_requires.append('certifi')/d" setup.py
|
|
}
|
|
|
|
python3-tornado_package() {
|
|
pycompile_module="tornado"
|
|
depends="ca-certificates"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|