commit:     50d38d2e487a86cdb5348a6ac81f227ab4b4af12
Author:     Horea Christian <chr <AT> chymera <DOT> eu>
AuthorDate: Sat Mar 25 04:16:54 2023 +0000
Commit:     Horea Christian <horea.christ <AT> gmail <DOT> com>
CommitDate: Sat Mar 25 04:17:13 2023 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=50d38d2e

sci-biology/pybedtools: enable py3.11, py3.9, fixed tests

Signed-off-by: Horea Christian <chr <AT> chymera.eu>

 sci-biology/pybedtools/pybedtools-0.8.2.ebuild | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/sci-biology/pybedtools/pybedtools-0.8.2.ebuild 
b/sci-biology/pybedtools/pybedtools-0.8.2.ebuild
index 8f4ae591f..aca7eb9ed 100644
--- a/sci-biology/pybedtools/pybedtools-0.8.2.ebuild
+++ b/sci-biology/pybedtools/pybedtools-0.8.2.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_10 )
+PYTHON_COMPAT=( python3_{9..11} )
 
 inherit distutils-r1
 
@@ -15,9 +15,6 @@ LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
 
-# ModuleNotFoundError: No module named 'pybedtools.cbedtools'
-RESTRICT="test"
-
 RDEPEND="
        sci-biology/bedtools
        sci-biology/pysam[${PYTHON_USEDEP}]
@@ -34,3 +31,12 @@ BDEPEND="dev-python/cython[${PYTHON_USEDEP}]"
 # even if pybedtools is installed
 #distutils_enable_sphinx docs/source
 distutils_enable_tests pytest
+
+python_test() {
+       # Requires network
+       local EPYTEST_DESELECT=(
+               test/test_helpers.py::test_chromsizes
+       )
+       cd "${T}" || die
+       epytest --pyargs pybedtools
+}

Reply via email to