1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 SUPPORT_PYTHON_ABIS="1"
9 inherit distutils eutils
11 DESCRIPTION="Python bindings for tokyo tyrant"
12 HOMEPAGE="http://code.google.com/p/pytyrant/"
13 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
17 KEYWORDS="~amd64 ~x86"
20 DEPEND="test? ( net-misc/tokyotyrant )"
23 RESTRICT_PYTHON_ABIS="3.*"
26 epatch "${FILESDIR}/return_test_status.patch"
30 einfo "${PN} tests require a running instance of tokyo tyrant at port 1978"
32 PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" ${PN}.py || die "Tests failed"
34 python_execute_function testing