# Maintainer: Liam Timms # Maintainer: Sin Kim # Maintainer: Caleb Maclennan _pkgname=datalad pkgname=python-$_pkgname pkgver=1.0.0 pkgrel=1 pkgdesc='Keep code, data, containers under control with git and git-annex' arch=(any) url="https://github.com/datalad/$_pkgname" license=(MIT) depends=(git-annex patool python python-annexremote python-boto3 python-chardet python-distro python-fasteners python-gitlab python-humanize python-iso8601 python-keyring python-keyrings-alt python-looseversion python-msgpack python-packaging python-platformdirs python-requests python-setuptools # used at runtime python-tqdm) makedepends=(python-{build,installer,wheel}) checkdepends=(mypy python-beautifulsoup4 python-httpretty python-pytest python-types-python-dateutil python-types-requests python-vcrpy) optdepends=('python-argcomplete: optional CLI completion' 'python-datalad-next: extension for new and improved functionality and user experience' 'python-dateutil: support for more date formats' 'python-requests-ftp: extra downloaders' 'python-pyperclip: clipboard manipulations') _archive="$_pkgname-$pkgver" source=("$url/archive/$pkgver/$_archive.tar.gz") sha256sums=('9b5cc1ea2a4da7adee2c901de13d77859faec0e219919f4b57eeb5c9293c7e3c') build() { cd "$_archive" python -m build -wn } check() { cd "$_archive" pytest } package() { cd "$_archive" python -m installer -d "$pkgdir" dist/*.whl install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" COPYING }