dev-python/pycryptodome - 4.0.1 (gentoo)

Search

Install

Install this version:

emerge -a =dev-python/pycryptodome-4.0.1

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-python/pycryptodome-4.0.1

Or alternatively:

emerge --autounmask-write -a =dev-python/pycryptodome-4.0.1

Package Information

Description:
A self-contained cryptographic library for Python
Homepage:
https://www.pycryptodome.org/ https://github.com/Legrandin/pycryptodome/ https://pypi.org/project/pycryptodome/
License:
BSD-2 Unlicense

Ebuild Details

Version EAPI Keywords Slot
4.0.1 8 ~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris 0
View Raw Ebuild
# 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

DESCRIPTION="A self-contained cryptographic library for Python"
HOMEPAGE="
	https://www.pycryptodome.org/
	https://github.com/Legrandin/pycryptodome/
	https://pypi.org/project/pycryptodome/
"
SRC_URI="
	https://github.com/Legrandin/pycryptodome/archive/v${PV}.tar.gz
		-> ${P}.gh.tar.gz
"

LICENSE="BSD-2 Unlicense"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris"

DEPEND="
	dev-libs/gmp:=
"
BDEPEND="
	$(python_gen_cond_dep 'dev-python/cffi[${PYTHON_USEDEP}]' 'python*')
"
RDEPEND="
	${DEPEND}
	${BDEPEND}
"

python_test() {
	local -x PYTHONPATH=${S}/test_vectors:${PYTHONPATH}
	"${EPYTHON}" - <<-EOF || die
		import sys
		from Crypto import SelfTest
		SelfTest.run(verbosity=2)
	EOF

	# TODO: run cmake tests from src/test?
}

Inherited Eclasses

Dependencies

DEPEND

	dev-libs/gmp:=

RDEPEND

	
	dev-libs/gmp:=

	
	$(python_gen_cond_dep 'dev-python/cffi[${PYTHON_USEDEP}]' 'python*')

BDEPEND

	$(python_gen_cond_dep 'dev-python/cffi[${PYTHON_USEDEP}]' 'python*')

Manifest for 4.0.1

Type File Size Source URLs
DIST pycryptodome-4.0.1.gh.tar.gz 16299237 bytes https://github.com/Legrandin/pycryptodome/archive/v4.0.1.tar.gz