blob: 99951425a9b757943a0fc96c88bef8561d1ab310 (
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
|
_name=mizani
pkgname=python-$_name
pkgver=0.13.0
pkgrel=1
pkgdesc='Scales for python'
arch=(any)
url="https://github.com/has2k1/$_name"
license=(BSD)
depends=(
python
python-numpy
python-scipy
python-pandas
)
makedepends=(
python-setuptools
python-setuptools-scm
python-build
python-installer
python-wheel
)
checkdepends=(
python-pytest
python-pytest-cov
)
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('3d658df352a1c6342eb56b146ae242ab916bd717ecd75ffb14961559ccbc9cb8')
build() {
cd "$_name-$pkgver"
python -m build --wheel --no-isolation
}
check() {
cd "$_name-$pkgver"
PYTHONPATH=. pytest --color=yes -v
}
package() {
cd "$_name-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|