blob: c4e52a8e145e5b778cb6d7e21122ecd45b44fd06 (
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
40
41
42
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="3"
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.*"
inherit distutils python
DESCRIPTION="A complete Python wrapper for the Google Chart API"
HOMEPAGE="http://pygooglechart.slowchop.com/"
SRC_URI="http://pygooglechart.slowchop.com/files/download/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
DEPEND="dev-python/setuptools
test? ( dev-python/PyQrcodec )"
RDEPEND=""
# Tests currently fail
RESTRICT="test"
PYTHON_MODNAME="${PN}.py"
src_test() {
# The test scripts import the test.test_base module; need this to get python
# to recognize the test module.
touch test/__init__.py
testing() {
# python_execute_function will die if this function returns a non-zero
# exit status.
PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" test/test_general.py && \
PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" test/test_bugs.py
}
python_execute_function testing
}
|