blob: d2feaef2f07cdf1976873e9ec54bbf5c3d01f898 (
plain)
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
|
# Maintainer: Philipp A. <flying-sheep@web.de>
_name=array-api-compat
pkgname=python-$_name
pkgver=1.12.0
pkgrel=1
pkgdesc='A wrapper around NumPy and other array libraries to make them compatible with the Array API standard.'
arch=(any)
url="https://data-apis.org/$_name/"
license=(MIT)
depends=(python)
optdepends=(python-numpy python-cupy python-jax python-pytorch python-dask python-sparse)
makedepends=(python-setuptools python-setuptools-scm python-build python-installer)
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/${_name//-/_}-$pkgver.tar.gz")
sha256sums=('585bc615f650de53ac24b7c012baecfcdd810f50df3573be47e6dd9fa20df974')
build() {
cd "${_name//-/_}-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "${_name//-/_}-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
|