diff options
Diffstat (limited to 'dev-python/ecdsa/ecdsa-0.9.ebuild')
-rw-r--r-- | dev-python/ecdsa/ecdsa-0.9.ebuild | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/dev-python/ecdsa/ecdsa-0.9.ebuild b/dev-python/ecdsa/ecdsa-0.9.ebuild new file mode 100644 index 000000000000..b9c63ae811af --- /dev/null +++ b/dev-python/ecdsa/ecdsa-0.9.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/ecdsa/ecdsa-0.9.ebuild,v 1.1 2013/10/02 11:16:59 blueness Exp $ + +EAPI=5 + +# pypy has test failures with some BadSignatureErrors +PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} ) + +inherit distutils-r1 vcs-snapshot + +DESCRIPTION="ECDSA cryptographic signature library in pure Python" +HOMEPAGE="http://github.com/warner/python-ecdsa" +SRC_URI="https://github.com/warner/python-${PN}/tarball/python-${P} -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +DEPEND="test? ( dev-libs/openssl:0 )" + +python_test() { + cd "${TMPDIR}" || die + "${PYTHON}" "${BUILD_DIR}"/lib/${PN}/test_pyecdsa.py \ + || die "Tests fail with ${EPYTHON}" +} |