Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 481494
Collapse All | Expand All

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

Return to bug 481494