# automatically generated by g-sorcery
# please do not edit this file

EAPI=8

REALNAME="${PN}"
LITERALNAME="PyNaCl"
REALVERSION="${PV}"
DIGEST_SOURCES="yes"
PYTHON_COMPAT=( python{3_11,3_12,3_13,3_14} )
DISTUTILS_USE_PEP517=standalone

inherit python-r1 gs-pypi

DESCRIPTION="Python binding to the Networking and Cryptography (NaCl) library"

HOMEPAGE="https://github.com/pyca/pynacl/"
LICENSE="Apache-2.0"
SRC_URI="https://files.pythonhosted.org/packages/source/${REALNAME::1}/${REALNAME}/${REALNAME}-${REALVERSION}.tar.gz"
SOURCEFILE="${REALNAME}-${REALVERSION}.tar.gz"
RESTRICT="test"

SLOT="0"
KEYWORDS="~amd64 ~x86"

IUSE="docs tests"
DEPENDENCIES=">=dev-python/cffi-2.0.0[${PYTHON_USEDEP}]
	tests? ( >=dev-python/pytest-7.4.0[${PYTHON_USEDEP}] )
	tests? ( >=dev-python/pytest-cov-2.10.1[${PYTHON_USEDEP}] )
	tests? ( >=dev-python/pytest-xdist-3.5.0[${PYTHON_USEDEP}] )
	tests? ( >=dev-python/hypothesis-3.27.0[${PYTHON_USEDEP}] )
	docs? ( <dev-python/sphinx-7.0[${PYTHON_USEDEP}] )
	docs? ( dev-python/sphinx-rtd-theme[${PYTHON_USEDEP}] )"
BDEPEND="${DEPENDENCIES}"
RDEPEND="${DEPENDENCIES}"