1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 DISTUTILS_USE_SETUPTOOLS=no
7 PYTHON_COMPAT=( python3_{6,7,8} pypy3 )
11 DESCRIPTION="Pure-Python Implementation of the AES block-cipher and common modes of operation"
12 HOMEPAGE="https://pypi.org/project/pyaes/"
13 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
17 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86"
19 RESTRICT="!test? ( test )"
21 DEPEND="test? ( dev-python/pycryptodome[${PYTHON_USEDEP}] )"
25 for t in tests/test-*.py; do
27 "${EPYTHON}" "${t}" || fail=1
29 [[ ${fail} ]] && die "Tests fail with ${EPYTHON}"