--- ecdsa-0.8.ebuild 2012-09-18 06:28:48.000000000 +0200 +++ ecdsa-0.8-r1.ebuild 2013-08-17 23:31:44.293000000 +0200 @@ -2,12 +2,12 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-python/ecdsa/ecdsa-0.8.ebuild,v 1.2 2012/09/18 04:28:48 mr_bones_ Exp $ -EAPI="4" -PYTHON_DEPEND="2" -SUPPORT_PYTHON_ABIS="1" -RESTRICT_PYTHON_ABIS="3.*" +EAPI=5 -inherit distutils vcs-snapshot +# pypy has test failures with some BadSignatureErrors +PYTHON_COMPAT=( python{2_6,2_7} ) + +inherit distutils-r1 vcs-snapshot DESCRIPTION="ECDSA cryptographic signature library in pure Python" HOMEPAGE="http://github.com/warner/python-ecdsa" @@ -20,9 +20,8 @@ IUSE="test" DEPEND="test? ( dev-libs/openssl:0 )" -src_test() { - testing() { - PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" ${PN}/test_pyecdsa.py - } - python_execute_function testing +python_test() { + cd "${TMPDIR}" || die + "${PYTHON}" "${BUILD_DIR}"/lib/${PN}/test_pyecdsa.py \ + || die "Tests fail with ${EPYTHON}" }