commit:     6fdee212269c999a4ec6ceb020115f6b9959d20f
Author:     Horea Christian <chr <AT> chymera <DOT> eu>
AuthorDate: Sun Sep 27 07:33:55 2020 +0000
Commit:     Horea Christian <horea.christ <AT> gmail <DOT> com>
CommitDate: Sun Sep 27 07:33:55 2020 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=6fdee212

sci-biology/gffutils: version bump 0.10.1, test and PYTHON_COMPAT fix

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

 ...utils-0.8.7.1.ebuild => gffutils-0.10.1.ebuild} | 26 +++++++++++++++++-----
 sci-biology/gffutils/gffutils-0.8.7.1.ebuild       |  6 ++---
 2 files changed, 24 insertions(+), 8 deletions(-)

diff --git a/sci-biology/gffutils/gffutils-0.8.7.1.ebuild 
b/sci-biology/gffutils/gffutils-0.10.1.ebuild
similarity index 51%
copy from sci-biology/gffutils/gffutils-0.8.7.1.ebuild
copy to sci-biology/gffutils/gffutils-0.10.1.ebuild
index 787a5668a..f33541347 100644
--- a/sci-biology/gffutils/gffutils-0.8.7.1.ebuild
+++ b/sci-biology/gffutils/gffutils-0.10.1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=7
 
-PYTHON_COMPAT=( python2_7 )
+PYTHON_COMPAT=( python3_{6..9} )
 
 inherit distutils-r1
 
@@ -17,8 +17,24 @@ KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
 IUSE=""
 
 RDEPEND="
-       sci-biology/pyfaidx[${PYTHON_USEDEP}]
        dev-python/simplejson[${PYTHON_USEDEP}]
        dev-python/argh[${PYTHON_USEDEP}]
-       dev-python/argcomplete[${PYTHON_USEDEP}]"
+       dev-python/argcomplete[${PYTHON_USEDEP}]
+       sci-biology/biopython[${PYTHON_USEDEP}]
+       sci-biology/pybedtools[${PYTHON_USEDEP}]
+       sci-biology/pyfaidx[${PYTHON_USEDEP}]
+"
 DEPEND="${RDEPEND}"
+
+python_prepare_all() {
+       if use test; then
+               sed -i -e "s:/tmp/gffutils-test:${T}:g" gffutils/test/test.py 
|| die
+       fi
+       distutils-r1_python_prepare_all
+}
+
+distutils_enable_tests nose
+python_test() {
+       distutils_install_for_testing
+       nosetests -v -x --with-doctest -a '!slow' || die
+}

diff --git a/sci-biology/gffutils/gffutils-0.8.7.1.ebuild 
b/sci-biology/gffutils/gffutils-0.8.7.1.ebuild
index 787a5668a..333716f7a 100644
--- a/sci-biology/gffutils/gffutils-0.8.7.1.ebuild
+++ b/sci-biology/gffutils/gffutils-0.8.7.1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=7
 
-PYTHON_COMPAT=( python2_7 )
+PYTHON_COMPAT=( python3_{6..9} )
 
 inherit distutils-r1
 

Reply via email to