# Maintainer: Martin Diehl pkgver=0.43.4 pkgrel=1 pkgname=python-pyvista _name=${pkgname#python-} pkgdesc='3D plotting and mesh analysis through a streamlined interface for the Visualization Toolkit (VTK)' arch=('any') url='https://www.pyvista.org' license=('MIT') depends=('python-numpy' 'python-pillow' 'python-pooch' 'python-scooby' 'vtk' 'python-matplotlib') makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools') optdepends=('python-meshio' 'xorg-server-xvfb' 'python-imageio') source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") sha512sums=('046816dc69e0daca98b604d29f63635e2a0d2654b39a8ba47ca77d2952dfb7fde72bdb6d9b325895a3aed057ebd9b3a3e0a4a82b93af6a8c82f64769ade6ce4d') 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 }