void-packages/srcpkgs/python-tornado/template
Peter Bui d3655dd908 python-tornado: update to 4.5.3
Closes: #10549 [via git-merge-pr]
2018-01-10 16:29:43 +01:00

30 lines
921 B
Bash

# Template file for 'python-tornado'
pkgname=python-tornado
version=4.5.3
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=6d14e47eab0e15799cf3cdcc86b0b98279da68522caace2bd7ce644287685f0a
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*
}
}