# Maintainer: Caleb Maclennan pkgname=python-dvc-objects _pkgname=${pkgname#python-} pkgver=5.1.0 pkgrel=2 pkgdesc='DVC objects' arch=(any) license=(Apache-2.0) url="https://github.com/iterative/$_pkgname" _pydeps=(diskcache flatten-dict fsspec funcy nanotime shortuuid tqdm) depends=(python "${_pydeps[@]/#/python-}") makedepends=(python-{build,installer,wheel} python-setuptools-scm) optdepends=('python-adlfs: azure support' 'python-azure-identity: azure support' 'python-knack: azure support' 'python-pyarrow: hdfs support' 'python-fsspec: hdfs support' 'python-aiohttp-retry: http support' 'python-ossfs: oss support' 'python-s3fs: s3 support' 'python-aiobotocore: s3 support' 'python-boto3: s3 support' 'python-bcrypt: ssh support' 'python-sshfs: ssh support' 'python-webdav4: webdav support') _archive=("$_pkgname-$pkgver") source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_archive.tar.gz") sha256sums=('22e919620f9ecf428a0d295efca8073d1c0e87206dd8e1f52b1d9520fa25b814') build() { cd "$_archive" python -m build -wn } package() { cd "$_archive" python -m installer -d "$pkgdir" dist/*.whl }