# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=py3-cython
_pkgname=Cython
pkgver=0.29.28
pkgrel=0
pkgdesc="Compiler for writing C extensions for the Python language"
url="https://cython.org/"
arch="all"
options="net !check"  # downloads numpy at least
license="Apache-2.0"
depends="python3"
makedepends="python3-dev"
subpackages=""
source="https://pypi.io/packages/source/C/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 runtests.py --shard_count=${JOBS}
}

package() {
	mkdir -p "$pkgdir"
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="cff0125d64596955acc20ec28cbeeb8e186b383fcba380d77991225f943dc64cd498bc09f441cec04c56d808b194fa181a760fd9f5f9d7890829de666ec37c77  Cython-0.29.28.tar.gz"