mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
# Maintainer:
|
|
pkgname=py3-tornado
|
|
_pkgname=tornado
|
|
pkgver=6.3.1
|
|
pkgrel=0
|
|
pkgdesc="Python3 web framework and asynchronous networking library"
|
|
options="!check" # 3 Tests fail by failure to resolve 'localhost'
|
|
url="http://www.tornadoweb.org/"
|
|
arch="all"
|
|
license="Apache-2.0"
|
|
depends="python3"
|
|
makedepends="python3-dev py3-setuptools"
|
|
checkdepends="py3-curl py3-mock py3-twisted"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
replaces="py-tornado" # Backwards compatibility
|
|
provides="py-tornado=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
export TORNADO_EXTENSION=1
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
export PYTHONPATH="$(echo $PWD/build/lib.*)"
|
|
cd build
|
|
python3 -m tornado.test.runtests
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
rm -rf "$pkgdir"/usr/lib/python3*/site-packages/$_pkgname/test
|
|
}
|
|
|
|
sha512sums="
|
|
e6b33d017448060d29e718cb4ed4f852f3f1a970ef6149fcf88900cf7a7f008b737cfdad3c217a6c43a5c7176aee0adb72c3c0055b6b3faac49acd34c3b74b90 tornado-6.3.1.tar.gz
|
|
"
|