summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2020-06-07 12:45:06 +0200
committerPacho Ramos <pacho@gentoo.org>2020-06-07 12:45:26 +0200
commitc0303b6f37b2ad50973f99b2d9d962d3cef4a1e6 (patch)
tree6aabcf6366498101ae34c5d7e1daa4e611d877e9 /sci-chemistry
parentdev-python/pandas: Bump to 1.0.4 (diff)
downloadgentoo-c0303b6f37b2ad50973f99b2d9d962d3cef4a1e6.tar.gz
gentoo-c0303b6f37b2ad50973f99b2d9d962d3cef4a1e6.tar.bz2
gentoo-c0303b6f37b2ad50973f99b2d9d962d3cef4a1e6.zip
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@gentoo.org>
Diffstat (limited to 'sci-chemistry')
-rw-r--r--sci-chemistry/GromacsWrapper/GromacsWrapper-0.8.0.ebuild11
-rw-r--r--sci-chemistry/GromacsWrapper/files/GromacsWrapper-0.8.0-tests-package.patch11
2 files changed, 21 insertions, 1 deletions
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',