1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 python3_{5,6,7})
10 DESCRIPTION="Python binding to the Networking and Cryptography (NaCl) library"
11 HOMEPAGE="https://github.com/pyca/pynacl/ https://pypi.org/project/PyNaCl/"
12 SRC_URI="https://github.com/pyca/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
16 KEYWORDS="alpha amd64 arm arm64 ~hppa ia64 ppc ppc64 s390 sparc x86"
18 RESTRICT="!test? ( test )"
21 dev-python/six[${PYTHON_USEDEP}]
22 >=dev-python/cffi-1.4.1[${PYTHON_USEDEP}]
23 dev-libs/libsodium:0/23
26 dev-python/setuptools[${PYTHON_USEDEP}]
27 test? ( >=dev-python/hypothesis-3.27.0[${PYTHON_USEDEP}]
28 >=dev-python/pytest-3.2.1[${PYTHON_USEDEP}] )
32 # For not using the bundled libsodium
33 export SODIUM_INSTALL=system
34 distutils-r1_python_prepare_all
38 py.test -v || die "Tests failed under ${EPYTHON}"