commit:     c0303b6f37b2ad50973f99b2d9d962d3cef4a1e6
Author:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Sun Jun  7 10:45:06 2020 +0000
Commit:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Sun Jun  7 10:45:26 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0303b6f

sci-chemistry/GromacsWrapper: Don't install tests package

Also run tests

Thanks-to: Tupone Alfredo
Closes: https://bugs.gentoo.org/701784
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>

 sci-chemistry/GromacsWrapper/GromacsWrapper-0.8.0.ebuild      | 11 ++++++++++-
 .../files/GromacsWrapper-0.8.0-tests-package.patch            | 11 +++++++++++
 2 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/sci-chemistry/GromacsWrapper/GromacsWrapper-0.8.0.ebuild 
b/sci-chemistry/GromacsWrapper/GromacsWrapper-0.8.0.ebuild
index b80d49a156d..b1ef5b96a7f 100644
--- a/sci-chemistry/GromacsWrapper/GromacsWrapper-0.8.0.ebuild
+++ b/sci-chemistry/GromacsWrapper/GromacsWrapper-0.8.0.ebuild
@@ -30,5 +30,14 @@ BDEPEND="
        dev-python/six[${PYTHON_USEDEP}]
        dev-python/numpy[${PYTHON_USEDEP}]
        dev-python/matplotlib[${PYTHON_USEDEP}]
-       sci-libs/numkit[${PYTHON_USEDEP}]"
+       sci-libs/numkit[${PYTHON_USEDEP}]
+       test? ( >=dev-python/pandas-0.17[${PYTHON_USEDEP}] )
+"
 RDEPEND="${DEPEND}"
+
+distutils_enable_tests pytest
+
+PATCHES=(
+       # https://github.com/Becksteinlab/GromacsWrapper/issues/182
+       "${FILESDIR}"/${P}-tests-package.patch
+)

diff --git 
a/sci-chemistry/GromacsWrapper/files/GromacsWrapper-0.8.0-tests-package.patch 
b/sci-chemistry/GromacsWrapper/files/GromacsWrapper-0.8.0-tests-package.patch
new file mode 100644
index 00000000000..ee28e09e774
--- /dev/null
+++ 
b/sci-chemistry/GromacsWrapper/files/GromacsWrapper-0.8.0-tests-package.patch
@@ -0,0 +1,11 @@
+--- a/setup.py.old     2020-06-06 21:50:25.432740405 +0200
++++ b/setup.py 2020-06-06 21:50:43.109010442 +0200
+@@ -35,7 +35,7 @@
+                    'Topic :: Scientific/Engineering :: Chemistry',
+                    'Topic :: Software Development :: Libraries :: Python 
Modules',
+                    ],
+-      
packages=find_packages(exclude=['tests','scripts','extras','doc/examples']),
++      
packages=find_packages(exclude=['tests','tests.*','scripts','extras','doc/examples']),
+       scripts = [
+                  'scripts/gw-join_parts.py',
+                  'scripts/gw-merge_topologies.py',

Reply via email to