blob: 9a900a2eadaf7dcdf805ca56f624505f64228638 (
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.13.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=('8b83a56aa8b9477472fee37f7731968dd213e20c198a05ac49caeff9b03f48a6')
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
}
|