# Original maintainer: Stuart Mumford # Current maintainer: Corentin Cadiou pkgname=python-yt _module_name=yt pkgver=4.3.1 pkgrel=1 pkgdesc="A community-developed analysis and visualization toolkit for volumetric data." arch=(any) url="http://yt-project.org" license=('BSD') depends=( 'python-cmyt' 'python-ewah-bool-utils' 'python-matplotlib' 'python-more-itertools' 'python-numpy' 'python-pillow' 'python-sympy' 'python-tomli-w' 'python-tqdm' 'python-typing_extensions' 'python-unyt' ) makedepends=( 'cython' 'python-build' 'python-installer' 'python-wheel' ) optdepends=( 'jupyterlab: interactive analysis' 'openmp: multithred support' 'python-astropy: reading FITS files' 'python-f90nml: reading RAMSES namelist files' 'python-mpi4py: parallelism support' 'python-netcdf4: read netCDF-backed datasets' 'python-pandas: support downloading sample datasets ' 'python-pooch: support downloading sample datasets' 'python-scipy: KDtree-accelerated spatial indexing' 'python-xarray: input/output to xarray format' 'python-glue: input/output to glueviz format' ) options=(!emptydirs) source=("https://pypi.io/packages/source/y/${_module_name}/${_module_name}-${pkgver}.tar.gz") sha256sums=('7b6db5c336dc22dd2212bb17c3b18f42cfe144bb1f6c3dda0dcd47eb77195e0e') build() { cd "$srcdir/${_module_name}-$pkgver" python -m build --wheel --no-isolation } package() { cd "$srcdir/${_module_name}-$pkgver" python -m installer --destdir="$pkgdir" dist/*.whl install -D -m644 COPYING.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } # vim:set ts=2 sw=2 et: