# Maintainer: Blair Bonnett # Contributor: Sebastiaan Lokhorst # Contributor: Michael Schubert pkgname=python-numba-git pkgver=0.60.0dev0.r51.g6b511bf6b pkgrel=1 pkgdesc='NumPy aware dynamic Python compiler using LLVM (Git version)' url='https://github.com/numba/numba' arch=('x86_64') license=('BSD') depends=('python-llvmlite>=0.43.0dev0' 'python-numpy' 'python-setuptools') optdepends=( 'openmp: OpenMP threading backend' 'tbb: TBB threading backend' 'python-scipy: cython bindings used in np.linalg.* support' 'python-jinja: “pretty” type annotation output (HTML) via the CLI' 'python-cffi: use of CFFI bindings in compiled functions' 'python-yaml: use of a .numba_config.yaml file for storing per project configuration options' 'python-colorama: error message highlighting' 'python-pygments: “pretty” type annotation' ) makedepends=('git' 'openmp' 'python-build' 'python-installer' 'python-wheel' 'tbb') conflicts=('python-numba') provides=("python-numba=$pkgver") source=('git+https://github.com/numba/numba.git') sha256sums=('SKIP') pkgver() { cd numba printf "%s" "$(git describe --long origin/HEAD | sed 's/\([^-]*-g\)/r\1/;s/-/./g')" } build() { cd numba python -m build --no-isolation --wheel } package() { cd numba python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE LICENSES.third-party }