Install this version:
emerge -a =dev-python/pycryptodomex-3.24.1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-python/pycryptodomex-3.24.1
Or alternatively:
emerge --autounmask-write -a =dev-python/pycryptodomex-3.24.1
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 3.24.1 | 8 | ~amd64 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{12..15} )
PYTHON_REQ_USE="threads(+)"
inherit distutils-r1 pypi
DESCRIPTION="Cryptographic library for Python (Cryptodome namespace)"
HOMEPAGE="
https://www.pycryptodome.org/
https://github.com/Legrandin/pycryptodome/
https://pypi.org/project/pycryptodomex/
"
# The sdist lacks the test vectors, without them most of SelfTest is skipped.
SRC_URI+="
test? (
https://github.com/Legrandin/pycryptodome/archive/v${PV}.tar.gz
-> pycryptodome-${PV}.gh.tar.gz
)
"
LICENSE="BSD-2 Unlicense"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"
DEPEND="dev-libs/gmp:="
RDEPEND="${DEPEND}"
DOCS=( README.rst )
python_test() {
local -x PYTHONPATH="${BUILD_DIR}/install$(python_get_sitedir):${WORKDIR}/pycryptodome-${PV}/test_vectors"
"${EPYTHON}" - <<-EOF || die
import sys
from Cryptodome import SelfTest
SelfTest.run(verbosity=2, stream=sys.stdout)
EOF
}
Manage flags for this package:
euse -i <flag> -p dev-python/pycryptodomex |
euse -E <flag> -p dev-python/pycryptodomex |
euse -D <flag> -p dev-python/pycryptodomex
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | pycryptodome-3.24.1.gh.tar.gz | 19739898 bytes | https://github.com/Legrandin/pycryptodome/archive/v3.24.1.tar.gz |