blob: 15c1c661c9f89b7b83b386f9c6f06860818e99fb (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Maintainer: Blair Bonnett <blair dot bonnett at gmail dot com>
pkgname=python-quaternionic
pkgver=1.0.14
pkgrel=1
pkgdesc="Interpret NumPy arrays as quaternionic arrays with Numba acceleration"
url="https://quaternionic.readthedocs.io"
arch=('any')
license=('MIT')
depends=(
'python-numba'
'python-numpy'
'python-scipy'
)
makedepends=(
'git'
'python-build'
'python-hatchling'
'python-installer'
'python-wheel'
)
checkdepends=(
'python-pytest'
'python-pytest-cov'
)
_pypi="quaternionic"
source=(
"git+https://github.com/moble/quaternionic.git#tag=v$pkgver"
)
sha256sums=(
'6c813c0a74c7e4befe5438ee54261bb41b2f105e13d3f60b471dd95f33226a5d'
)
build() {
cd quaternionic
python -m build --no-isolation --wheel
}
check() {
cd quaternionic
python -m venv --system-site-packages test-env
test-env/bin/python -m installer "dist/quaternionic-$pkgver-"*.whl
test-env/bin/python -m pytest
}
package() {
cd quaternionic
python -m installer --destdir="$pkgdir" "dist/quaternionic-$pkgver-"*.whl
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|