diff options
author | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2022-01-24 16:07:37 +0100 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2022-01-24 16:07:37 +0100 |
commit | 43df0040d2daeed6edd9ea6a4f4e4038483d87b6 (patch) | |
tree | 871715d41790a92a681f79a387950e41c67e3d0b /sci-visualization/fsleyes-widgets/fsleyes-widgets-0.12.2.ebuild | |
parent | dev-perl/Bio-EnsEMBL: remove fundamentally broken package (diff) | |
download | sci-43df0040d2daeed6edd9ea6a4f4e4038483d87b6.tar.gz sci-43df0040d2daeed6edd9ea6a4f4e4038483d87b6.tar.bz2 sci-43df0040d2daeed6edd9ea6a4f4e4038483d87b6.zip |
sci-visualization/fsleyes-widgets: bump to 0.12.2
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'sci-visualization/fsleyes-widgets/fsleyes-widgets-0.12.2.ebuild')
-rw-r--r-- | sci-visualization/fsleyes-widgets/fsleyes-widgets-0.12.2.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/sci-visualization/fsleyes-widgets/fsleyes-widgets-0.12.2.ebuild b/sci-visualization/fsleyes-widgets/fsleyes-widgets-0.12.2.ebuild new file mode 100644 index 000000000..82a1e587c --- /dev/null +++ b/sci-visualization/fsleyes-widgets/fsleyes-widgets-0.12.2.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..9} ) + +inherit distutils-r1 virtualx + +MY_P="widgets-${PV}" + +DESCRIPTION="GUI widgets and utilities for the FSLeyes viewer" +HOMEPAGE="https://git.fmrib.ox.ac.uk/fsl/fsleyes/fsleyes/tree/master" +SRC_URI="https://git.fmrib.ox.ac.uk/fsl/fsleyes/widgets/-/archive/${PV}/${MY_P}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + =dev-python/numpy-1*[${PYTHON_USEDEP}] + >=dev-python/matplotlib-1.5[${PYTHON_USEDEP}] + >=dev-python/wxpython-3.0.2.0[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest +distutils_enable_sphinx doc dev-python/sphinx_rtd_theme + +python_prepare_all() { + # do not depend on pytest-cov + sed -i -e '/addopts/d' setup.cfg || die + + # assert 0 == 1 + sed -i -e 's:test_FloatSlider_mouse_non_gtk:_&:' \ + -e 's:test_FloatSlider_mouse_gtk:_&:' \ + -e 's:test_SliderSpinPanel_events:_&:' \ + tests/test_floatslider.py || die + + # assert None == 0 + sed -i -e 's:test_notebook_events:_&:' \ + tests/test_notebook.py || die + + # assert 25.0 < 5 + sed -i -e 's:test_RangePanel_events_slider:_&:' \ + -e 's:test_RangeSliderSpinPanel_onchange:_&:' \ + tests/test_rangeslider.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + # If this could be set for the eclass, it might fix some of the tests: + # https://github.com/pauldmccarthy/fsleyes-widgets/issues/1#issuecomment-575387724 + #xvfbargs="-screen 0 1920x1200x24 +extension RANDR" + virtx epytest +} |