summaryrefslogtreecommitdiff
path: root/user/py3-cython/APKBUILD
blob: b5b682b4683f8351e49856969b7814b244fdcf2d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=py3-cython
_pkgname=Cython
pkgver=0.29.21
pkgrel=0
pkgdesc="Compiler for writing C extensions for the Python language"
url="https://cython.org/"
arch="all"
options="net"  # 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="6216e63996e83b887cdcee6cd912d42e7da853640336b9190f5115d687848a902ee5a8edd6bfaef645c066b89e17dcd80ca1387688eb80a527ec23a0a4636e8f  Cython-0.29.21.tar.gz"