# Contributor: Stuart Cardall # Maintainer: Stuart Cardall pkgname=py3-opencl _pkgreal=pyopencl pkgver=2023.1.1 pkgrel=0 pkgdesc="Python3 wrapper for OpenCL" url="https://pypi.org/project/pyopencl" arch="all" license="MIT" depends="py3-platformdirs py3-numpy py3-mako py3-pytools" makedepends=" libffi-dev mesa-dev opencl-dev py3-gpep517 py3-numpy-dev py3-pybind11-dev py3-setuptools py3-wheel python3-dev " checkdepends="py3-pytest py3-py" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/${_pkgreal:0:1}/$_pkgreal/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" options="!check" # tests require python-theano which isn't packed yet replaces="py-opencl" # Backwards compatibility provides="py-opencl=$pkgver-r$pkgrel" # Backwards compatibility 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 -m pytest } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" 50c23132028bb2c35816b6c83c054eaf929d333fbb172230e0d696a5e6103ad6ee6ccbbbd0b5d3d2d3c5f02505340a885422097eccecb1bf51845658c7938c8f pyopencl-2023.1.1.tar.gz "