diff options
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 25 |
2 files changed, 26 insertions, 20 deletions
@@ -1,19 +1,24 @@ pkgbase = python-pyvista pkgdesc = 3D plotting and mesh analysis through a streamlined interface for the Visualization Toolkit (VTK) - pkgver = 0.31.1 + pkgver = 0.43.5 pkgrel = 1 url = https://www.pyvista.org arch = any license = MIT + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + makedepends = python-setuptools depends = python-numpy - depends = python-imageio depends = python-pillow - depends = python-appdirs + depends = python-pooch depends = python-scooby - depends = python-meshio - depends = paraview - depends = python-transforms3d - source = https://github.com/pyvista/pyvista/archive/0.31.1.tar.gz - sha512sums = dcd311bd36ceb3cb591e1d5c4fb6e3b37ba442249d96aa146ff17e8899439a7c107c2409b6722d03df6382efa1f6c932b310500a900d509052bab60673e4c477 + depends = vtk + depends = python-matplotlib + optdepends = python-meshio + optdepends = xorg-server-xvfb + optdepends = python-imageio + source = https://files.pythonhosted.org/packages/source/p/pyvista/pyvista-0.43.5.tar.gz + sha512sums = 21375dab3666946f38e9c1173c3870f95e09132475df636d1afae54e916cba50cd035a9bca632428d25e9fcec38b0f2e1e7e8a30e274ed1d62c32ae9db4153f0 pkgname = python-pyvista @@ -1,25 +1,26 @@ # Maintainer: Martin Diehl <aur@martin-diehl.net> -pkgname=python-pyvista -pkgver=0.31.1 +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') -makdepends=('python-setuptools') -depends=('python-numpy' 'python-imageio' 'python-pillow' 'python-appdirs' 'python-scooby' 'python-meshio' 'paraview' 'python-transforms3d') -source=("https://github.com/pyvista/pyvista/archive/${pkgver}.tar.gz") -sha512sums=('dcd311bd36ceb3cb591e1d5c4fb6e3b37ba442249d96aa146ff17e8899439a7c107c2409b6722d03df6382efa1f6c932b310500a900d509052bab60673e4c477') +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 "$srcdir"/pyvista-${pkgver} - python setup.py build_ext --inplace - python setup.py build + cd "$_name-$pkgver" + python -m build --wheel --no-isolation } package() { - cd "$srcdir"/pyvista-${pkgver} - python setup.py install --skip-build --root="$pkgdir" --optimize=1 - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + cd "$_name-$pkgver" + python -m installer --destdir="$pkgdir" dist/*.whl + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } |