diff options
author | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2022-10-11 21:06:21 +0200 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2022-10-11 21:06:21 +0200 |
commit | ec43a70b919251b1bcbaa1d005a7535017883d56 (patch) | |
tree | 732a7a5d8f6142ddd2caee1a74f3e782cf73d2a3 /sci-visualization | |
parent | dev-python/fslpy: add 3.10.0 (diff) | |
download | sci-ec43a70b919251b1bcbaa1d005a7535017883d56.tar.gz sci-ec43a70b919251b1bcbaa1d005a7535017883d56.tar.bz2 sci-ec43a70b919251b1bcbaa1d005a7535017883d56.zip |
sci-visualization/fsleyes-widgets: add 0.12.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'sci-visualization')
-rw-r--r-- | sci-visualization/fsleyes-widgets/Manifest | 1 | ||||
-rw-r--r-- | sci-visualization/fsleyes-widgets/fsleyes-widgets-0.12.3.ebuild | 61 |
2 files changed, 62 insertions, 0 deletions
diff --git a/sci-visualization/fsleyes-widgets/Manifest b/sci-visualization/fsleyes-widgets/Manifest index f81be256c..14b4c8d8e 100644 --- a/sci-visualization/fsleyes-widgets/Manifest +++ b/sci-visualization/fsleyes-widgets/Manifest @@ -1 +1,2 @@ DIST fsleyes-widgets-0.12.2.tar.gz 1068565 BLAKE2B db322e7cadfef8d7ba5a63ed089a6979337837418afeb8e0cd10418a119f7e359a360b16dc2dc3756d1f353033d60b4387bff69b9dc864b515fab16daa939e6f SHA512 6c6da4bb2d61a1fe4cff8a7db887595de2df9b3e76984a0ab7492f859f8a47d14b4999e2a3e31c6f6e13f31b7557e55e6b04378dd970d227aa02920c250de088 +DIST fsleyes-widgets-0.12.3.tar.gz 1138692 BLAKE2B beb4125760b4aff463bc3f9ccb03ae3aa0c88a35af4d992a1f2cb728cb607e846e616a0c91bc3c725db613ef82d3d5acefd47195342aa7bfce2d9bfbcb90428c SHA512 93ebf267eee345ce57bc0096b294f399be9815848d5d2b3c8644a4d177ce37b77a37036bc7825541a7e3a8b364701ab5f6a24532a156b258787e0a0961657aed diff --git a/sci-visualization/fsleyes-widgets/fsleyes-widgets-0.12.3.ebuild b/sci-visualization/fsleyes-widgets/fsleyes-widgets-0.12.3.ebuild new file mode 100644 index 000000000..ad56317e4 --- /dev/null +++ b/sci-visualization/fsleyes-widgets/fsleyes-widgets-0.12.3.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +DISTUTILS_USE_PEP517=setuptools +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 +} + +src_test() { + virtx distutils-r1_src_test +} + +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" + epytest +} |