# Maintainer:
# Contributor: Guillaume Horel <guillaume.horel@gmail.com>

_pyname=fastparquet
pkgname=python-$_pyname
pkgver=2024.2.0
pkgrel=2
pkgdesc='A python implementation of the parquet format'
url='https://github.com/dask/fastparquet'
depends=(python python-cramjam python-pandas python-fsspec)
makedepends=(cython python-build python-installer python-setuptools python-wheel python-numpy git)
optdepends=(python-s3fs)
license=(Apache-2.0)
arch=(x86_64 aarch64)
source=(https://github.com/dask/fastparquet/archive/$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('b747ec949616dfd76b7d3f2fa793a3f4ab6271040aca89d656ee41db056cddc0')

build() {
  cd $_pyname-$pkgver
  python -m build --wheel --no-isolation --skip-dependency-check
}

package() {
  cd $_pyname-$pkgver
  python -m installer --destdir="$pkgdir" dist/*.whl
}
