aports/main/cython/APKBUILD

35 lines
1.2 KiB
Text

# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Contributor: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=cython
pkgver=3.0.12
pkgrel=0
pkgdesc="Cython is an optimising static compiler for both the Python & the extended Cython programming languages."
url="https://cython.org/"
arch="all"
license="Apache-2.0"
makedepends="py3-gpep517 py3-setuptools py3-wheel python3-dev"
depends="python3"
subpackages="cython-pyc cython-doc"
source="cython-$pkgver.tar.gz::https://github.com/cython/cython/archive/$pkgver.tar.gz"
build() {
gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 runtests.py -j${JOBS:-$(nproc)}
}
package() {
python3 -m installer -d "$pkgdir" .dist/*.whl
install -Dm 644 LICENSE.txt "$pkgdir/usr/share/licenses/cython/license"
install -Dm 644 README.rst "$pkgdir/usr/share/doc/cython/readme.rst"
}
sha512sums="
bbf2cc662b846cf5ff9b686046ec210ea9d3893482e2b5a2696d2ad44f12facd15075b168a3eb6d1f4ea799786f676868eab2593451bceb2937aec2cb1aea99e cython-3.0.12.tar.gz
"