blob: c7a437264c769dc55f3bbe564c6bebd852fc0e66 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7..9} )
inherit distutils-r1
DESCRIPTION="GFF and GTF file manipulation and interconversion"
HOMEPAGE="https://pythonhosted.org/gffutils/"
SRC_URI="https://github.com/daler/gffutils/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="
dev-python/simplejson[${PYTHON_USEDEP}]
dev-python/argh[${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
}
|