# Maintainer: Butui Hu pkgname=python-torchio _pkgname=torchio pkgver=0.18.91 pkgrel=1 pkgdesc='Tools for medical image processing in deep learning and PyTorch' arch=('any') url='https://github.com/fepegar/torchio' license=('MIT') depends=( python-click python-deprecated python-humanize python-matplotlib python-nibabel python-numpy python-pytorch python-scipy python-simpleitk python-torchvision python-tqdm ) makedepends=( python-build python-installer python-setuptools python-wheel ) source=("${pkgname}-${pkgver}.tar.gz::https://github.com/fepegar/torchio/archive/v${pkgver}.tar.gz") sha512sums=('25ba386bb589d753a7a7556a3d228371a5bf69af23ca9295bc7fb2a2ee83fe8d97ae86a548c9b41d15a5a1f56a42e39c9d1b76136bb650cb76748bec3e240955') build() { cd "${_pkgname}-${pkgver}" python -m build --wheel --no-isolation } package() { cd "${_pkgname}-${pkgver}" python -m installer --destdir="${pkgdir}" dist/*.whl install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" } # vim:set ts=2 sw=2 et: