blob: f3011c48c5022cf9dd4a232cdd743051342f6a8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Maintainer: Butui Hu <hot123tea123@gmail.com>
pkgname=python-torchio
_pkgname=torchio
pkgver=0.18.45
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=('09d11519f0fb2831618873a05199390e0a390fbbba186adac2d98649cf99c16957707e6c21d8227159703ce6dab773720bfd4c4c97e9264a9a2ba3c9cb99b209')
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:
|