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