# Maintainer: Martin Diehl pkgver=0.43.5 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=('21375dab3666946f38e9c1173c3870f95e09132475df636d1afae54e916cba50cd035a9bca632428d25e9fcec38b0f2e1e7e8a30e274ed1d62c32ae9db4153f0') 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 }