# Maintainer: Butui Hu pkgname=python-torchio _pkgname=torchio pkgver=0.18.79 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=('e4743ad61a2a55956674e2761e98811c634ed492484ffa302c4cf0e0c5655ee0884b2bcb476bd1d0e8bc5f2ed28565f41f0ff6e989f3f14d088751aa7496a6a2') 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: