dev-python/pycryptodome: Remove old

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2025-04-05 19:26:40 +02:00
parent c5d4a49d42
commit 1b24ca82b1
2 changed files with 0 additions and 61 deletions

View File

@@ -1,2 +1 @@
DIST pycryptodome-3.21.0.gh.tar.gz 17464067 BLAKE2B 5fcf62317053ae3d1dddd90bb223e9866944b4c4325ae146c17c48d2345c06c3fc9951dc72c135ec5a61043b7eced92b69c9bc5f43d47e1f512b9c9ce94fa310 SHA512 cfb66b1e53547992b9405bc6a2d90ed3bc3d1857a01ef619069b9d1aa24d809a9d46d8b0d824999588dd6c0de9a5e39db70b572a9954f0ead0dd39f9b7cedbcc
DIST pycryptodome-3.22.0.gh.tar.gz 19700949 BLAKE2B 381aec9085ce2e54dd99061b5966409aca4e0da4315c0e7234f7620438cfbec303d1914ddc20ac529a5504bbdb3354976e56f0cb9c37030da142da33bf620798 SHA512 e997b4ffa2d003bfcd4b53af58d18e07db5aee4fea539f76c3b13c2ed92a9067d73f5bdfd19c649a2584ef143a918e9905f10e6d57a927a5d50ce19e5e95268f

View File

@@ -1,60 +0,0 @@
# Copyright 1999-2025 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_{10..13} pypy3 pypy3_11 )
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 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-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?
}