2022-08-26 02:11:46 +02:00
|
|
|
# Copyright 1999-2022 Gentoo Authors
|
2020-12-07 09:51:38 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
2022-08-26 02:11:46 +02:00
|
|
|
PYTHON_COMPAT=( python3_{8,9,10} )
|
2020-12-07 09:51:38 +01:00
|
|
|
DISTUTILS_SINGLE_IMPL=1
|
|
|
|
DISTUTILS_USE_SETUPTOOLS=rdepend
|
|
|
|
|
|
|
|
inherit distutils-r1
|
|
|
|
|
2022-08-26 02:11:46 +02:00
|
|
|
DESCRIPTION="Efficiently process 3D images in deep learning applications."
|
2020-12-07 09:51:38 +01:00
|
|
|
HOMEPAGE="https://torchio.readthedocs.io/"
|
2022-08-26 02:11:46 +02:00
|
|
|
SRC_URI="https://github.com/fepegar/torchio/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
LICENSE="Apache-2.0"
|
2020-12-07 09:51:38 +01:00
|
|
|
SLOT="0"
|
|
|
|
IUSE=""
|
|
|
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
|
|
|
DEPEND="
|
2022-08-26 02:11:46 +02:00
|
|
|
$(python_gen_cond_dep '
|
|
|
|
dev-python/click[${PYTHON_USEDEP}]
|
|
|
|
dev-python/humanize[${PYTHON_USEDEP}]
|
|
|
|
sci-libs/nibabel[${PYTHON_USEDEP}]
|
|
|
|
dev-python/numpy[${PYTHON_USEDEP}]
|
|
|
|
dev-python/deprecation[${PYTHON_USEDEP}]
|
|
|
|
dev-python/scipy[${PYTHON_USEDEP}]
|
|
|
|
sci-libs/pytorch[${PYTHON_USEDEP}]
|
|
|
|
dev-python/tqdm[${PYTHON_USEDEP}]
|
|
|
|
')
|
|
|
|
sci-libs/simpleitk[${PYTHON_SINGLE_USEDEP}]
|
2020-12-07 09:51:38 +01:00
|
|
|
"
|
|
|
|
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
|
|
|
|
distutils_enable_tests pytest
|