commit:     ea94e8974906d55e593321e488e2a0437aa5a718
Author:     Horea Christian <chr <AT> chymera <DOT> eu>
AuthorDate: Sun Jan 19 17:23:15 2020 +0000
Commit:     Horea Christian <horea.christ <AT> gmail <DOT> com>
CommitDate: Sun Jan 19 17:23:15 2020 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=ea94e897

sci-visualization/fsleyes-props: new package required by FSLeyes

Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Horea Christian <chr <AT> chymera.eu>

 sci-visualization/fsleyes-props/ChangeLog          |  9 +++++
 .../files/fsleyes-props-1.6.7-coverage.patch       | 10 +++++
 .../files/fsleyes-props-1.6.7-tests.patch          | 45 +++++++++++++++++++++
 .../fsleyes-props/fsleyes-props-1.6.7.ebuild       | 46 ++++++++++++++++++++++
 sci-visualization/fsleyes-props/metadata.xml       | 19 +++++++++
 5 files changed, 129 insertions(+)

diff --git a/sci-visualization/fsleyes-props/ChangeLog 
b/sci-visualization/fsleyes-props/ChangeLog
new file mode 100644
index 000000000..58b6e28dd
--- /dev/null
+++ b/sci-visualization/fsleyes-props/ChangeLog
@@ -0,0 +1,9 @@
+  08 Oct 2018; Horea Christian <h....@mail.ru> fsleyes-props-1.6.3.ebuild:
+  sci-visualization/fsleyes-props: python3 compatibility
+
+*fsleyes-props-1.6.3 (08 Oct 2018)
+
+  08 Oct 2018; Horea Christian <h....@mail.ru> +fsleyes-props-1.6.3.ebuild,
+  +metadata.xml:
+  sci-visualization/fsleyes-props: new ebuild  Ahead of inclusion in science
+  overlay (unsubmitted)

diff --git 
a/sci-visualization/fsleyes-props/files/fsleyes-props-1.6.7-coverage.patch 
b/sci-visualization/fsleyes-props/files/fsleyes-props-1.6.7-coverage.patch
new file mode 100644
index 000000000..e256af331
--- /dev/null
+++ b/sci-visualization/fsleyes-props/files/fsleyes-props-1.6.7-coverage.patch
@@ -0,0 +1,10 @@
+diff --git a/setup.cfg b/setup.cfg
+index 2b66974..9929adf 100644
+--- a/setup.cfg
++++ b/setup.cfg
+@@ -10,4 +10,4 @@ ignore = 
E127,E201,E203,E221,E222,E241,E271,E272,E301,E302,E303,E701
+
+ [tool:pytest]
+ testpaths = tests
+-addopts   = -v --cov=fsleyes_props
++addopts   = -v

diff --git 
a/sci-visualization/fsleyes-props/files/fsleyes-props-1.6.7-tests.patch 
b/sci-visualization/fsleyes-props/files/fsleyes-props-1.6.7-tests.patch
new file mode 100644
index 000000000..124eb28cb
--- /dev/null
+++ b/sci-visualization/fsleyes-props/files/fsleyes-props-1.6.7-tests.patch
@@ -0,0 +1,45 @@
+diff --git a/tests/test_widget_number.py b/tests/test_widget_number.py
+index 1c5cadc..9d8067a 100644
+--- a/tests/test_widget_number.py
++++ b/tests/test_widget_number.py
+@@ -14,6 +14,7 @@ import fsleyes_props               as props
+ import fsleyes_widgets.floatspin   as floatspin
+ import fsleyes_widgets.floatslider as floatslider
+ 
++import pytest
+ 
+ def setup_module():
+     props.initGUI()
+@@ -28,6 +29,9 @@ class MyObj(props.HasProperties):
+     myrealc = props.Real(minval=0.0, maxval=1.0, clamped=True)
+ 
+ 
++@pytest.mark.skip(reason="Known to fail on Gentoo:"
++    "https://github.com/pauldmccarthy/fsleyes-props/issues/1";
++    )
+ def  test_widget_number(): run_with_wx(_test_widget_number)
+ def _test_widget_number(parent):
+ 
+diff --git a/tests/test_widget_point.py b/tests/test_widget_point.py
+index cc21226..d83aa48 100644
+--- a/tests/test_widget_point.py
++++ b/tests/test_widget_point.py
+@@ -11,6 +11,7 @@ import numpy as np
+ import fsleyes_props               as props
+ import fsleyes_widgets.floatslider as floatslider
+ 
++import pytest
+ 
+ from . import (run_with_wx, simtext, simclick, addall, realYield)
+ 
+@@ -24,7 +25,9 @@ class MyObj(props.HasProperties):
+     mypointi = props.Point(ndims=2, real=False)
+     mypointf = props.Point(ndims=2)
+ 
+-
++@pytest.mark.skip(reason="Known to fail on Gentoo:"
++    "https://github.com/pauldmccarthy/fsleyes-props/issues/1";
++    )
+ def  test_widget_point(): run_with_wx(_test_widget_point)
+ def _test_widget_point(parent):
+ 

diff --git a/sci-visualization/fsleyes-props/fsleyes-props-1.6.7.ebuild 
b/sci-visualization/fsleyes-props/fsleyes-props-1.6.7.ebuild
new file mode 100644
index 000000000..ed283ca43
--- /dev/null
+++ b/sci-visualization/fsleyes-props/fsleyes-props-1.6.7.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_6 )
+
+inherit distutils-r1 virtualx
+
+MY_PN="props"
+
+DESCRIPTION="The new FSL image viewer, released with FSL 5.0.10"
+HOMEPAGE="https://git.fmrib.ox.ac.uk/fsl/fsleyes/fsleyes/tree/master";
+SRC_URI="https://git.fmrib.ox.ac.uk/fsl/fsleyes/${MY_PN}/-/archive/${PV}/${MY_PN}-${PV}.tar.gz";
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+DEPEND="
+       test? (
+               dev-python/pytest[${PYTHON_USEDEP}]
+               )
+       dev-python/setuptools[${PYTHON_USEDEP}]
+       "
+RDEPEND="
+       dev-python/deprecation[${PYTHON_USEDEP}]
+       dev-python/numpy[${PYTHON_USEDEP}]
+       dev-python/matplotlib[${PYTHON_USEDEP}]
+       dev-python/six[${PYTHON_USEDEP}]
+       dev-python/wxpython[${PYTHON_USEDEP}]
+       sci-visualization/fsleyes-widgets[${PYTHON_USEDEP}]
+       dev-python/fslpy[${PYTHON_USEDEP}]
+       "
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+PATCHES=(
+       "${FILESDIR}/fsleyes-props-1.6.7-coverage.patch"
+       "${FILESDIR}/fsleyes-props-1.6.7-tests.patch"
+)
+
+python_test() {
+       virtx pytest --verbose || die
+}

diff --git a/sci-visualization/fsleyes-props/metadata.xml 
b/sci-visualization/fsleyes-props/metadata.xml
new file mode 100644
index 000000000..cc3ce2d75
--- /dev/null
+++ b/sci-visualization/fsleyes-props/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>c...@chymera.eu</email>
+               <name>Horea Christian</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>s...@gentoo.org</email>
+               <name>Gentoo Science Project</name>
+       </maintainer>
+       <longdescription lang="en">
+               FSLeyes-props is a library which is used by FSLeyes, and which 
allows you to
+               listen for change to attributes on a python object, 
automatically generate
+               wxpython widgets which are bound to attributes of a python 
object, and
+               automatically generate a command line interface to set values 
of the attributes
+               of a Python object.
+       </longdescription>
+</pkgmetadata>

Reply via email to