blob: bbb30d216f510eea8e0e7a7beaba05cc7c65ce46 (
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
|
# Maintainer: Butui Hu <hot123tea123@gmail.com>
pkgname=python-torchio
_pkgname=torchio
pkgver=0.16.7
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-nibabel'
'python-numpy'
'python-pytorch'
'python-scipy'
'python-simpleitk'
'python-torchvision'
'python-tqdm'
)
makedepends=(
'python-setuptools'
)
checkdepends=(
'python-pytest'
'python-deprecated'
)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/fepegar/torchio/archive/v${pkgver}.tar.gz")
sha512sums=('1f22adb97a7806b24e9106caf3702ccc4b3fedefe87f56709bebc21182ce7fc8ce6473d5088306b81f77448270a159cf4f4b6fc19e3ee1f2c4786e7d56ebe375')
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:
|