commit: 4122ae6f765a6bd940815a19109baab131e9f842 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Wed Nov 29 15:52:03 2023 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Wed Nov 29 15:52:03 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4122ae6f
dev-python/pycryptodome: Remove old Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/pycryptodome/Manifest | 1 - .../pycryptodome-3.18.0-python3.12-unittest.patch | 22 -------- dev-python/pycryptodome/pycryptodome-3.18.0.ebuild | 62 ---------------------- 3 files changed, 85 deletions(-) diff --git a/dev-python/pycryptodome/Manifest b/dev-python/pycryptodome/Manifest index 7d8268b41a31..9fcc8999fb69 100644 --- a/dev-python/pycryptodome/Manifest +++ b/dev-python/pycryptodome/Manifest @@ -1,2 +1 @@ -DIST pycryptodome-3.18.0.gh.tar.gz 16720227 BLAKE2B dfdc3a7cc0b1aea1e7b7d8f6e8bcf651ca92f0020e2c51849512d00e716283537feb884cacdc655d99a6b992305db9b899172d022bc9ff65d6349ee40b40c4d5 SHA512 a30a6b406bfd1d4288169924924636246c36999ca1e14c5cb70bd2f71ce25739dae04726ca97bdaebf7a8b36927cc6f617fbe2599fad48512a2c5e016a528247 DIST pycryptodome-3.19.0.gh.tar.gz 17153954 BLAKE2B 5ecaacce490e5eec052d632b1427a4e36ba19a863c28934f53f247b945bb32a1367aeaf1b8669018978bd19d53c28a00f711158c6be014779c47c48f263b2e8c SHA512 1afa71336da38efb32f79d87b442a1d50537a6908ec153be7a087027a8540cebabab12922557c92e501f2d6da5c2f35466d3bbe6a3de44540de7278069691290 diff --git a/dev-python/pycryptodome/files/pycryptodome-3.18.0-python3.12-unittest.patch b/dev-python/pycryptodome/files/pycryptodome-3.18.0-python3.12-unittest.patch deleted file mode 100644 index 6e49a784af16..000000000000 --- a/dev-python/pycryptodome/files/pycryptodome-3.18.0-python3.12-unittest.patch +++ /dev/null @@ -1,22 +0,0 @@ -https://github.com/Legrandin/pycryptodome/pull/746 - -From 9d70fbca927516b31ef61fd7cc3ed3e0ebc95fa6 Mon Sep 17 00:00:00 2001 -From: Sam James <[email protected]> -Date: Thu, 1 Jun 2023 08:03:18 +0100 -Subject: [PATCH] Replace deprecated unittest aliases for Python 3.12 - -See https://docs.python.org/3.12/whatsnew/3.12.html#removed. ---- a/lib/Crypto/SelfTest/PublicKey/test_import_ECC.py -+++ b/lib/Crypto/SelfTest/PublicKey/test_import_ECC.py -@@ -2269,9 +2269,9 @@ def test_import_x509_pem(self): - def test_import_openssh_public(self): - key_file = load_file("ecc_ed25519_public_openssh.txt") - key = ECC._import_openssh_public(key_file) -- self.failIf(key.has_private()) -+ self.assertFalse(key.has_private()) - key = ECC.import_key(key_file) -- self.failIf(key.has_private()) -+ self.assertFalse(key.has_private()) - - def test_import_openssh_private_clear(self): - key_file = load_file("ecc_ed25519_private_openssh.pem") diff --git a/dev-python/pycryptodome/pycryptodome-3.18.0.ebuild b/dev-python/pycryptodome/pycryptodome-3.18.0.ebuild deleted file mode 100644 index c6091d5602fe..000000000000 --- a/dev-python/pycryptodome/pycryptodome-3.18.0.ebuild +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright 1999-2023 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..12} pypy3 ) -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 ~ia64 ~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} - !dev-python/pycrypto -" - -PATCHES=( - "${FILESDIR}/pycryptodome-3.10.1-system-libtomcrypt.patch" - "${FILESDIR}/pycryptodome-3.18.0-python3.12-unittest.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? -}
