blob: d19f7838b7f27023c448a2e06b2ee6b1b05fceea (
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-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/turbojson/turbojson-1.3-r1.ebuild,v 1.4 2014/03/31 21:16:40 mgorny Exp $
EAPI="5"
PYTHON_COMPAT=( python{2_6,2_7} pypy pypy2_0 )
inherit distutils-r1
MY_PN="TurboJson"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="TurboGears JSON file format support plugin"
HOMEPAGE="http://pypi.python.org/pypi/TurboJson"
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
IUSE="test"
RDEPEND=">=dev-python/decoratortools-1.4[${PYTHON_USEDEP}]
>=dev-python/ruledispatch-0.5_pre2306[$(python_gen_usedep 'python2*')]
>=dev-python/simplejson-2.6.2[${PYTHON_USEDEP}]
>=dev-python/peak-rules-0.5[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
test? ( dev-python/nose[${PYTHON_USEDEP}]
dev-python/sqlalchemy[$(python_gen_usedep python{2_6,2_7})]
dev-python/sqlobject
>=dev-python/peak-rules-0.5[${PYTHON_USEDEP}]
)"
S="${WORKDIR}/${MY_P}"
python_test() {
cd "${BUILD_DIR}/lib/${PN}/tests/" || die
for test in test_*.py; do
"${PYTHON}" $test && einfo "Test $test passed under ${EPYTHON}" \
|| die "tests failed under ${EPYTHON}"
done
}
|