blob: 3b08f9fef6dc58f80d1b132012dd8926d83efb37 (
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
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
PYTHON_COMPAT=( python2_7 )
inherit distutils-r1
DESCRIPTION="Python API and tools to manipulate OpenDocument files"
HOMEPAGE="https://joinup.ec.europa.eu/software/odfpy/home https://pypi.python.org/pypi/odfpy"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="Apache-2.0 GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND=""
PATCHES=( "${FILESDIR}/${PN}-0.9.4-tests.patch" )
python_test() {
local exit_status=0 test
for test in tests/test*.py; do
einfo "Running ${test} ..."
"${PYTHON}" "${test}"
[[ $? -ne 0 ]] && exit_status=1
done
return ${exit_status}
}
|