diff options
Diffstat (limited to 'dev-python/pycryptodome')
-rw-r--r-- | dev-python/pycryptodome/Manifest | 3 | ||||
-rw-r--r-- | dev-python/pycryptodome/files/pycryptodome-3.18.0-python3.12-unittest.patch | 22 | ||||
-rw-r--r-- | dev-python/pycryptodome/pycryptodome-3.18.0.ebuild | 7 |
3 files changed, 28 insertions, 4 deletions
diff --git a/dev-python/pycryptodome/Manifest b/dev-python/pycryptodome/Manifest index 01e2e74002d5..0e1880a738ef 100644 --- a/dev-python/pycryptodome/Manifest +++ b/dev-python/pycryptodome/Manifest @@ -1,6 +1,7 @@ AUX pycryptodome-3.10.1-system-libtomcrypt.patch 1729 BLAKE2B 57a2022ef17e0b86e98b085336f5ce815304e326a5a2bd5cc8ff5d33b6efba440505767517b79c2f0bba39ab33f04d7434a3f0ee529b880ff7552aee2805dab5 SHA512 d53677c0ad96f161f9aed14b8f353a8cc12c92f31de9733789f9c4151710376d33e974fd611b763de94c631796d7a57cd8787656e3c1e985696e20537b34760e +AUX pycryptodome-3.18.0-python3.12-unittest.patch 974 BLAKE2B ceffed2878cbaa96ffeb500ecf2a855ef0e1f22b5e2f762241b3fe920b3e9117f1e4c7b7179bccdbcfd65ea12ec17a21cd697f5842610e368fc2e7b5275a40a4 SHA512 9db569a809048007eb4ef6e34426f70535a23e64e7037871eef1a65af8809022155ca31efb2eefac83f4221f03d82328645ff87b313714711d53b661c160eebf DIST pycryptodome-3.17.0.gh.tar.gz 16714317 BLAKE2B a7a96ba4d10078ba4d9bc02b384c982ad7307065fd6c9118def43bebc073eccdfc11a766742e5d0207e9cce32aca2fe3da51f8a59964de8c15db6808cc2aae03 SHA512 c0a0754c0dd1d8138e8dd27c034e3f3469237eb5f205d86d0c5e2377fd7672c6ed0df9717292a73d380daaabe88c3be80b575ca1149f4c70f08d82aed0d4b39c DIST pycryptodome-3.18.0.gh.tar.gz 16720227 BLAKE2B dfdc3a7cc0b1aea1e7b7d8f6e8bcf651ca92f0020e2c51849512d00e716283537feb884cacdc655d99a6b992305db9b899172d022bc9ff65d6349ee40b40c4d5 SHA512 a30a6b406bfd1d4288169924924636246c36999ca1e14c5cb70bd2f71ce25739dae04726ca97bdaebf7a8b36927cc6f617fbe2599fad48512a2c5e016a528247 EBUILD pycryptodome-3.17.0.ebuild 1298 BLAKE2B 3969878516e9ebba466b8a8ac09dddc6509a237aef7d376af1d39bbd2fd1c100af478044abccb767050a146918f0a6046dfc5141d4d22b2596bc98e01285a874 SHA512 743aba8f0fd868f7878619ada0b963e4a2993f472d25bf1d0b5a8e28b0945f87df2194a96ff7c5ae2fa4afa3bef1c79fb2070c627a719878ee0af9cd59056448 -EBUILD pycryptodome-3.18.0.ebuild 1347 BLAKE2B 8716f8c33ba88452b88b8b1ab683fe2fa54c5de31ca5b8a5126b99560427cd0909f41c6ec316fc3897b51b4b5656ff6f098380ea7958c23e6d5d2f69ca532316 SHA512 31bf19489e584adffdb4e6f6e394ec83ef00a0311629040ced753b348926072b8a94853275a08aec20eb72a219bbb0cc978eb86592fc76994ba80046512bcf07 +EBUILD pycryptodome-3.18.0.ebuild 1438 BLAKE2B ea841338e7b5fbbc2d2ce739c66b0b14a7e46bd2e08271028fda52a25aaafe695e64a731ba758d25c102fe68689a326801689bb0c5ec27fb864fa834cf659a9a SHA512 03ffba2eb3270a776f989ae12e970c20e5d126c92de9ed1012c894f42e1138c46c09b5fcc18a3655dc734db06d397b37d4d461bf294f827a302b9da39d8f97c6 MISC metadata.xml 386 BLAKE2B 1ec04c0cb752414f063177e637f1fc3e3c401db0c1f245cb33a3690e25597098b25fb2cd5f3ab99838a8bf8339906e2b23e325af5c7248fd880563c872c6fb60 SHA512 f19e2537c5a985389182860eaa45ae68a37ef1167c4b76b452513987fae6fcfb3534d102a079a003770372bbdb4f1997460c982b355f76d09f2387996e18091b 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 new file mode 100644 index 000000000000..6e49a784af16 --- /dev/null +++ b/dev-python/pycryptodome/files/pycryptodome-3.18.0-python3.12-unittest.patch @@ -0,0 +1,22 @@ +https://github.com/Legrandin/pycryptodome/pull/746 + +From 9d70fbca927516b31ef61fd7cc3ed3e0ebc95fa6 Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +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 index 71faf0d17415..cb0b4894d406 100644 --- a/dev-python/pycryptodome/pycryptodome-3.18.0.ebuild +++ b/dev-python/pycryptodome/pycryptodome-3.18.0.ebuild @@ -5,7 +5,7 @@ EAPI=8 DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..11} pypy3 ) +PYTHON_COMPAT=( python3_{10..12} pypy3 ) PYTHON_REQ_USE="threads(+)" inherit distutils-r1 @@ -26,11 +26,11 @@ SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" DEPEND=" - dev-libs/gmp:0= + dev-libs/gmp:= >=dev-libs/libtomcrypt-1.18.2-r1:= " BDEPEND=" - virtual/python-cffi[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/cffi[${PYTHON_USEDEP}]' 'python*') " RDEPEND=" ${DEPEND} @@ -40,6 +40,7 @@ RDEPEND=" PATCHES=( "${FILESDIR}/pycryptodome-3.10.1-system-libtomcrypt.patch" + "${FILESDIR}/pycryptodome-3.18.0-python3.12-unittest.patch" ) python_prepare_all() { |