diff options
| author | Crucible <crucible@localhost> | 2026-10-05 03:04:59 -0500 |
|---|---|---|
| committer | Crucible <crucible@localhost> | 2026-10-05 03:04:59 -0500 |
| commit | 5c02f4f10cf4865b1f5d2fc82a62c9292351d08d (patch) | |
| tree | d7f374928676a2e165c8811197265c7a5b8a78d8 /dev-python/pycryptodome | |
| parent | bbb006370a87e5c60f21145a1c97a8dbbe42e7fe (diff) | |
| download | srcux-5c02f4f10cf4865b1f5d2fc82a62c9292351d08d.tar.gz srcux-5c02f4f10cf4865b1f5d2fc82a62c9292351d08d.tar.xz srcux-5c02f4f10cf4865b1f5d2fc82a62c9292351d08d.zip | |
Publish srcux candidate 0000000567-20261005-030305
Diffstat (limited to 'dev-python/pycryptodome')
| -rw-r--r-- | dev-python/pycryptodome/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/pycryptodome/pycryptodome-3.24.0.ebuild | 60 |
2 files changed, 61 insertions, 0 deletions
diff --git a/dev-python/pycryptodome/Manifest b/dev-python/pycryptodome/Manifest index 53da12dc32c3..c31616dc83f5 100644 --- a/dev-python/pycryptodome/Manifest +++ b/dev-python/pycryptodome/Manifest @@ -1 +1,2 @@ DIST pycryptodome-3.23.0.gh.tar.gz 19732639 BLAKE2B 55ba3bea9d215dfd1f20262f9e333c78c126a7bb07b4f0ed795bb354a609082aea5ba1571fd29c76c716cfd7c74a6187509de7a8cc0e1eb03e27a2068c7aacb3 SHA512 564bad0257f50eaf9f4318c39bc224b79fe0051b4e2d6cff4c1070d2065cf9eb03bce661f9d21346414f9942bbc10a9f40e976eee104231718d1b9484fcbb022 +DIST pycryptodome-3.24.0.gh.tar.gz 19738917 BLAKE2B 12bd670a7862d7e6f8e108cc56f8c11515556b06ea9333132527b50444451348dfceb61458e1a0455483886ee412f95ad386d1d2af5dc80280b72f9ba35c8c18 SHA512 091ddb8baa0ca5632b08e4acfb7ddc010ba2580be41a6e5bd8f6b040de0b369fb7e4fc8730b84332800618b15defc5d9a07a44939c2a76c10ac567b08484e6be diff --git a/dev-python/pycryptodome/pycryptodome-3.24.0.ebuild b/dev-python/pycryptodome/pycryptodome-3.24.0.ebuild new file mode 100644 index 000000000000..3692b03106fe --- /dev/null +++ b/dev-python/pycryptodome/pycryptodome-3.24.0.ebuild @@ -0,0 +1,60 @@ +# 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_{13..14} ) +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:= + >=dev-libs/libtomcrypt-1.18.2-r1:= +" +BDEPEND=" + $(python_gen_cond_dep 'dev-python/cffi[${PYTHON_USEDEP}]' 'python*') +" +RDEPEND=" + ${DEPEND} + ${BDEPEND} +" + +PATCHES=( + "${FILESDIR}/pycryptodome-3.10.1-system-libtomcrypt.patch" +) + +python_prepare_all() { + # make sure we're unbundling it correctly + rm -r src/libtom || die + + distutils-r1_python_prepare_all +} + +python_test() { + local -x PYTHONPATH=${S}/test_vectors:${PYTHONPATH} + "${EPYTHON}" - <<-EOF || die + import sys + from Crypto import SelfTest + SelfTest.run(verbosity=2, stream=sys.stdout) + EOF + + # TODO: run cmake tests from src/test? +} |
