# Description: A wrapper around NumPy and other array libraries to make them compatible with the Array API standard # URL: https://github.com/data-apis/array-api-compat/releases # Maintainer: Petar Petrov, slackalaxy at gmail dot com # Depends on: python3-setuptools python3-setuptools-scm name=python3-array-api-compat version=1.15.0 release=2 source=(https://files.pythonhosted.org/packages/source/a/array-api-compat/array_api_compat-$version.tar.gz) build() { cd array_api_compat-$version /usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation /usr/bin/python3 -m installer --destdir=$PKG dist/*.whl find $PKG -iname "README*" -delete rm -rf $PKG/usr/lib/python3*/site-packages/*.dist-info/licenses find $PKG -path "*.dist-info/*" -type f \( -iname "LICENSE*" -o -iname "COPYING*" \) -delete chmod -R g-w $PKG }