# Maintainer: Butui Hu pkgname=python-torchio _pkgname=torchio pkgver=0.17.51 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-nibabel' 'python-numpy' 'python-pytorch' 'python-scipy' 'python-simpleitk' 'python-torchvision' 'python-tqdm' ) makedepends=( 'python-setuptools' ) checkdepends=( 'python-pytest' ) source=("${pkgname}-${pkgver}.tar.gz::https://github.com/fepegar/torchio/archive/v${pkgver}.tar.gz") sha512sums=('a2d67dbf0b8477ec6869ec93e7e2b421e1ddbdd2beeadb0e9f963799791d95bcf6b58a07bdf977471b53b530e7704cacf19edffef0afdf5068ccff06a42352af') build() { cd "${_pkgname}-${pkgver}" python setup.py build } check() { cd "${_pkgname}-${pkgver}" pytest -v . } package() { cd "${_pkgname}-${pkgver}" python setup.py install --root="${pkgdir}" --optimize=1 --skip-build install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" } # vim:set ts=2 sw=2 et: