Skip to content

Commit

Permalink
dev-python/pynacl: Port to py3.9
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Górny <[email protected]>
  • Loading branch information
mgorny committed Jun 8, 2020
1 parent ce02a2a commit 746d21d
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions dev-python/pynacl/pynacl-1.3.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

EAPI=7

PYTHON_COMPAT=( python2_7 python3_{6,7,8})
PYTHON_COMPAT=( python2_7 python3_{6..9})

inherit distutils-r1

Expand All @@ -14,8 +14,6 @@ SRC_URI="https://github.com/pyca/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux"
IUSE="test"
RESTRICT="!test? ( test )"

RDEPEND="
dev-python/six[${PYTHON_USEDEP}]
Expand All @@ -24,18 +22,15 @@ RDEPEND="
"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
test? ( >=dev-python/hypothesis-3.27.0[${PYTHON_USEDEP}]
>=dev-python/pytest-3.2.1[${PYTHON_USEDEP}] )
test? ( >=dev-python/hypothesis-3.27.0[${PYTHON_USEDEP}] )
"

distutils_enable_tests pytest

PATCHES=( "${FILESDIR}/${P}-hypothesis-4.patch" )

src_prepare() {
# For not using the bundled libsodium
export SODIUM_INSTALL=system
distutils-r1_python_prepare_all
}

python_test() {
py.test -v || die "Tests failed under ${EPYTHON}"
}

0 comments on commit 746d21d

Please sign in to comment.