_name=mizani pkgname=python-$_name pkgver=0.10.0 pkgrel=2 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=('4063e16cb7ce932e88d7bb9ac6552d3a0bf86eda2f92d3aee13777448cd580b7') build() { cd "$_name-$pkgver" python -m build --wheel --no-isolation } check() { cd "$_name-$pkgver" PYTHONPATH=. pytest --color=yes } package() { cd "$_name-$pkgver" python -m installer --destdir="$pkgdir" dist/*.whl install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }