commit: a89157a16ae4e45837bcd4ac865c242d2ca32423 Author: Horea Christian <horea.christ <AT> yandex <DOT> com> AuthorDate: Thu Nov 7 01:51:27 2019 +0000 Commit: Horea Christian <horea.christ <AT> gmail <DOT> com> CommitDate: Thu Nov 7 01:51:27 2019 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=a89157a1
dev-python/fslpy: package from newly modular FSL stack Package-Manager: Portage-2.3.77, Repoman-2.3.17 Signed-off-by: Horea Christian <horea.christ <AT> yandex.com> .../fslpy/files/fslpy-2.6.2-exclude_tests.patch | 10 +++++ dev-python/fslpy/fslpy-2.6.2.ebuild | 43 ++++++++++++++++++++++ dev-python/fslpy/metadata.xml | 18 +++++++++ 3 files changed, 71 insertions(+) diff --git a/dev-python/fslpy/files/fslpy-2.6.2-exclude_tests.patch b/dev-python/fslpy/files/fslpy-2.6.2-exclude_tests.patch new file mode 100644 index 000000000..503cd5332 --- /dev/null +++ b/dev-python/fslpy/files/fslpy-2.6.2-exclude_tests.patch @@ -0,0 +1,10 @@ +--- a/setup.py 2019-11-04 18:56:47.407791008 +0100 ++++ b/setup.py 2019-11-04 20:00:24.844224851 +0100 +@@ -29,6 +29,6 @@ + + packages = find_packages( +- exclude=('doc', 'tests', 'dist', 'build', 'fslpy.egg-info')) ++ exclude=('doc', 'tests', 'tests.*', 'dist', 'build', 'fslpy.egg-info')) + + # Figure out the current fslpy version, as defined in fsl/version.py. We + # don't want to import the fsl package, as this may cause build problems. diff --git a/dev-python/fslpy/fslpy-2.6.2.ebuild b/dev-python/fslpy/fslpy-2.6.2.ebuild new file mode 100644 index 000000000..31ea40ece --- /dev/null +++ b/dev-python/fslpy/fslpy-2.6.2.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{5,6} ) + +inherit distutils-r1 virtualx + +DESCRIPTION="The FSL Python Library" +HOMEPAGE="https://git.fmrib.ox.ac.uk/fsl/fslpy" +SRC_URI="https://github.com/pauldmccarthy/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +DEPEND=" + test? ( + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pytest-cov[${PYTHON_USEDEP}] + ) + dev-python/setuptools[${PYTHON_USEDEP}] + " +RDEPEND=" + dev-python/deprecation[${PYTHON_USEDEP}] + dev-python/h5py[${PYTHON_USEDEP}] + dev-python/indexed_gzip[${PYTHON_USEDEP}] + =dev-python/numpy-1*[${PYTHON_USEDEP}] + =dev-python/six-1*[${PYTHON_USEDEP}] + dev-python/trimesh[${PYTHON_USEDEP}] + =dev-python/wxpython-4*[${PYTHON_USEDEP}] + =sci-libs/Rtree-0.8.3*[${PYTHON_USEDEP}] + sci-libs/scipy[${PYTHON_USEDEP}] + >=sci-libs/nibabel-2.3.1[${PYTHON_USEDEP}] + " + +PATCHES=( "${FILESDIR}/${P}-exclude_tests.patch" ) + +python_test() { + virtx pytest -m "not (dicomtest or fsltest)" --verbose || die +} diff --git a/dev-python/fslpy/metadata.xml b/dev-python/fslpy/metadata.xml new file mode 100644 index 000000000..1e458f838 --- /dev/null +++ b/dev-python/fslpy/metadata.xml @@ -0,0 +1,18 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>horea.chr...@gmail.com</email> + <name>Horea Christian</name> + </maintainer> + <maintainer type="project"> + <email>s...@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <longdescription lang="en"> + FSLeyes is a viewer for 3D and 4D neuroimaging data. It is intended as a + replacement for the much loved FSLView. FSLeyes offers similar functionality + to FSLView, and aims to improve and expand upon this functionality in many + ways. + </longdescription> +</pkgmetadata>