# Description: C extensions for Python.
# URL: http://www.cython.org/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: python3-setuptools python3-build python3-wheel python3-installer

name=python3-cython
version=3.0.0
release=1
source=(https://pypi.org/packages/source/C/Cython/Cython-$version.tar.gz)

build() {
  cd Cython-$version

  /usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
  /usr/bin/python3 -m installer --compile-bytecode 2 --destdir=$PKG dist/*.whl

  for f in cygdb cython cythonize; do
    mv $PKG/usr/bin/$f $PKG/usr/bin/${f}3
  done
}
