bump pycryptodome-3.9.6 from Gentoo repo
This commit is contained in:
parent
cc3d99ac21
commit
1f631452a2
@ -17,7 +17,8 @@
|
||||
- fix non standard copyright header
|
||||
* add a MQTT virtual
|
||||
* bump homeassistant-0.105.0_beta7, remove some oldies
|
||||
* remove dev-python/PyNaCl, is in gentoo repo
|
||||
* remove dev-python/PyNaCl, is in Gentoo repo
|
||||
* bump pycryptodome-3.9.6 from Gentoo repo
|
||||
|
||||
2020-02-03
|
||||
* update app-misc/homeassistant-0.105.0_beta5
|
||||
|
||||
@ -1,8 +1,12 @@
|
||||
AUX pycryptodome-3.9.4-parallel-make.patch 756 BLAKE2B 06a79eff056ecb983131838287563d4d60896f27e28d5c2534f4ab008e50017694ac9355b43f8f387cc29abfd21ffd648233c3dbae33a06fcedb12a6c7e11e80 SHA512 06b42ea780bd374cf5cb5d6cef3fade5d695c1ee0d765e2659408da7645ad311eef2028f17d8ec0289d49c3a5851b4c63503d7c922de15873dbbf16d0db58b08
|
||||
AUX pycryptodome-3.9.4-tests.patch 2201 BLAKE2B 93bad5e716c968c1d1b765c0506f5e46680d3f1b71a89e6b6cc17c73475ca44433f75f03661bb5bb32905a9898c10ab13167e883a5240d08e540c6bf5adcc06a SHA512 8154064bcda7a4d7d9e87be09f1ecfdc1a7553b9fc82d7f9c7c9c12cef216d856d6135925c0cca64708e5f3f8009be27a97405ca7d31945af89248f77a0b8f5f
|
||||
DIST pycryptodome-3.7.0.tar.gz 7180132 BLAKE2B 1befc6704e50bf74b277cc76ac73518e4a25ab8fe811ee8347eaaf74d5534b5c2bdc9821b36e9658d83d88d096b73a31cb5b93d245ae541402a20140220741b6 SHA512 8a25ad339901cf0823f8035380f514de1b86a2468ba303b6c5c3f27cc0bea7cb0ea6d7e911e57b1e5a35d3089b0290f4dda7670525ce33b7e8dfb6b3277e1ecc
|
||||
DIST pycryptodome-3.7.2.tar.gz 7192874 BLAKE2B 25f9e1f318e5256679f49eb0c59d4d94765b7e0c21a8590073c6e2fc06d5b6cffc18a1623736bb0e016eaba688be380b117f9c8d2c954c60fceb2305777afca7 SHA512 f505d2fccb272bf5cb3f3fc1c3c77cafe809303f0c108e8d1b128c7a9567dff20384bcccb91fc5f80a0e847eec34f2629f9ddd1cb90580e00426044feeea467f
|
||||
DIST pycryptodome-3.7.3.tar.gz 9285823 BLAKE2B 6f215a3bb0337f5b7469d92bd2d5b5a19ab4e2c6a8f119411c3a5bcdcf93307752d99113866268b5066cceda6470bd0fbe81b1b2f9e30b5e5e569c77ede087f3 SHA512 b5e09c08cd252cad4d76249be84ce29e16a9bba4f2c5e81594c24d9a39df0f3fc67822698497eb9daa4cb6a43311c5d5a2543f187a5d5f801288596c2941f08f
|
||||
DIST pycryptodome-3.9.6.tar.gz 15451600 BLAKE2B 4eea059413ca09944fd234693c83a9c559ddbc3ca2d2d26b27f5df96925b20202621608737bf2d930ba63e3d0518da6e25a172a7097139cf859e224186615884 SHA512 c1fc4dc9e993d77c6928d0accdddafb4de4157a6db8a4c0f81fa7eb75a529a1cff04db77ff0d926a29030c98549329143b4bb2bbf198ef8811d7fee9803a8f2a
|
||||
EBUILD pycryptodome-3.7.0.ebuild 730 BLAKE2B b6a92ee12ec68653f69f9687b43958339e48383122c5fc5e2cf9d4a7754842d8e443a091c68393c4763f18c359dc9e7000fafaba7802750ada3893c45a2be98f SHA512 7a39141fd024aa9563fc336840c40364cf370f78db36c135139aad3ea62d1e2231810ab99c1069a3c9fead75b24f6363f145b53af0101a5cad9dbcb94071c39c
|
||||
EBUILD pycryptodome-3.7.2.ebuild 730 BLAKE2B b6a92ee12ec68653f69f9687b43958339e48383122c5fc5e2cf9d4a7754842d8e443a091c68393c4763f18c359dc9e7000fafaba7802750ada3893c45a2be98f SHA512 7a39141fd024aa9563fc336840c40364cf370f78db36c135139aad3ea62d1e2231810ab99c1069a3c9fead75b24f6363f145b53af0101a5cad9dbcb94071c39c
|
||||
EBUILD pycryptodome-3.7.3-r1.ebuild 707 BLAKE2B 0bcfdae808c5b705260093a46e7774b9335a62a59ba6bf5bfd131489907e0f04c02ea4e7b2ad76c11c69611f7ad7b019f1951f34c7283e4f3588fd56517bc598 SHA512 b0e2ccd5d77a36985f7159e92d352e6293884e66f60958e393dabd8697ca1e4f4742e21f41db51ab06ceda09049c9a253395f3517bd7f3fb16e35126a5642758
|
||||
EBUILD pycryptodome-3.7.3.ebuild 730 BLAKE2B b6a92ee12ec68653f69f9687b43958339e48383122c5fc5e2cf9d4a7754842d8e443a091c68393c4763f18c359dc9e7000fafaba7802750ada3893c45a2be98f SHA512 7a39141fd024aa9563fc336840c40364cf370f78db36c135139aad3ea62d1e2231810ab99c1069a3c9fead75b24f6363f145b53af0101a5cad9dbcb94071c39c
|
||||
EBUILD pycryptodome-3.9.6.ebuild 1485 BLAKE2B 2e48f2518cff057f55cfcdd0d4c2b9d7e551e4d7888bd25d9b5e3e124e3044411ec15bb58ffffb3e8b35de43d82ba19fb555096c4138d9045dbf7becfab594cb SHA512 2378842ac4337a3f6892e1270193bfacfffceb7355935968b071f2d92de4199827acaa34e620d61826e7d90d528a130d9e70b2dc0d85e7297a90afbe8ec3f0ad
|
||||
MISC metadata.xml 455 BLAKE2B 85d76bc452c28d7776686cb0c904b8d12f383110b29219e97a88e3f913c3b1605d917d84df20f94787b6b6ebbad99f5a3f5970e8983f90fcc83512fa98a2c03a SHA512 bf7e03d29b8a17f2c8b6b5524183f965ca21c9218cf6ec5fa64ce850f11a7ac7a628c5b43b8919867fdaf94892444acc28ed292bb68339b3e5c433434e608b36
|
||||
|
||||
@ -0,0 +1,22 @@
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 1d70caad..c72f64ff 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -364,7 +364,7 @@ ext_modules = [
|
||||
Extension("Crypto.Cipher._raw_eksblowfish",
|
||||
include_dirs=['src/'],
|
||||
define_macros=[('EKS',None),],
|
||||
- sources=["src/blowfish.c"]),
|
||||
+ sources=["src/blowfish_eks.c"]),
|
||||
Extension("Crypto.Cipher._raw_cast",
|
||||
include_dirs=['src/'],
|
||||
sources=["src/CAST.c"]),
|
||||
@@ -427,7 +427,7 @@ ext_modules = [
|
||||
# Math
|
||||
Extension("Crypto.Math._modexp",
|
||||
include_dirs=['src/'],
|
||||
- sources=['src/modexp.c', 'src/siphash.c', 'src/modexp_utils.c', 'src/mont.c'],
|
||||
+ sources=['src/modexp.c', 'src/siphash.c', 'src/modexp_utils.c', 'src/mont_math.c'],
|
||||
),
|
||||
]
|
||||
|
||||
48
dev-python/pycryptodome/files/pycryptodome-3.9.4-tests.patch
Normal file
48
dev-python/pycryptodome/files/pycryptodome-3.9.4-tests.patch
Normal file
@ -0,0 +1,48 @@
|
||||
diff --git a/lib/Crypto/SelfTest/Cipher/test_ChaCha20_Poly1305.py b/lib/Crypto/SelfTest/Cipher/test_ChaCha20_Poly1305.py
|
||||
index a2109891..44d2e532 100644
|
||||
--- a/lib/Crypto/SelfTest/Cipher/test_ChaCha20_Poly1305.py
|
||||
+++ b/lib/Crypto/SelfTest/Cipher/test_ChaCha20_Poly1305.py
|
||||
@@ -626,6 +626,7 @@ class TestVectorsWycheproof(unittest.TestCase):
|
||||
def __init__(self, wycheproof_warnings):
|
||||
unittest.TestCase.__init__(self)
|
||||
self._wycheproof_warnings = wycheproof_warnings
|
||||
+ self._id = "None"
|
||||
|
||||
def setUp(self):
|
||||
comps = "Crypto.SelfTest.Cipher.test_vectors.wycheproof".split(".")
|
||||
diff --git a/lib/Crypto/SelfTest/Cipher/test_EAX.py b/lib/Crypto/SelfTest/Cipher/test_EAX.py
|
||||
index cdd0e85a..546186d1 100644
|
||||
--- a/lib/Crypto/SelfTest/Cipher/test_EAX.py
|
||||
+++ b/lib/Crypto/SelfTest/Cipher/test_EAX.py
|
||||
@@ -656,6 +656,7 @@ class TestVectorsWycheproof(unittest.TestCase):
|
||||
def __init__(self, wycheproof_warnings):
|
||||
unittest.TestCase.__init__(self)
|
||||
self._wycheproof_warnings = wycheproof_warnings
|
||||
+ self._id = "None"
|
||||
|
||||
def setUp(self):
|
||||
comps = "Crypto.SelfTest.Cipher.test_vectors.wycheproof".split(".")
|
||||
diff --git a/lib/Crypto/SelfTest/Cipher/test_GCM.py b/lib/Crypto/SelfTest/Cipher/test_GCM.py
|
||||
index e3a7a3da..71ea0d18 100644
|
||||
--- a/lib/Crypto/SelfTest/Cipher/test_GCM.py
|
||||
+++ b/lib/Crypto/SelfTest/Cipher/test_GCM.py
|
||||
@@ -828,6 +828,7 @@ class TestVectorsWycheproof(unittest.TestCase):
|
||||
unittest.TestCase.__init__(self)
|
||||
self._wycheproof_warnings = wycheproof_warnings
|
||||
self._extra_params = extra_params
|
||||
+ self._id = "None"
|
||||
|
||||
def setUp(self):
|
||||
comps = "Crypto.SelfTest.Cipher.test_vectors.wycheproof".split(".")
|
||||
diff --git a/lib/Crypto/SelfTest/Cipher/test_SIV.py b/lib/Crypto/SelfTest/Cipher/test_SIV.py
|
||||
index 38341e14..ab588adc 100644
|
||||
--- a/lib/Crypto/SelfTest/Cipher/test_SIV.py
|
||||
+++ b/lib/Crypto/SelfTest/Cipher/test_SIV.py
|
||||
@@ -456,6 +456,7 @@ class TestVectorsWycheproof(unittest.TestCase):
|
||||
|
||||
def __init__(self):
|
||||
unittest.TestCase.__init__(self)
|
||||
+ self._id = "None"
|
||||
|
||||
def setUp(self):
|
||||
comps = "Crypto.SelfTest.Cipher.test_vectors.wycheproof".split(".")
|
||||
46
dev-python/pycryptodome/pycryptodome-3.9.6.ebuild
Normal file
46
dev-python/pycryptodome/pycryptodome-3.9.6.ebuild
Normal file
@ -0,0 +1,46 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{6,7,8} 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="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2 Unlicense"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-libs/gmp:0
|
||||
virtual/python-cffi[${PYTHON_USEDEP}]
|
||||
!dev-python/pycrypto"
|
||||
BDEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/pycryptodome-3.9.4-parallel-make.patch"
|
||||
# https://github.com/Legrandin/pycryptodome/pull/351
|
||||
#"${FILESDIR}/pycryptodome-3.9.4-tests.patch"
|
||||
)
|
||||
|
||||
python_prepare_all() {
|
||||
# parallel make fixes
|
||||
# Multiple targets were compiling the same file, setuptools doesn't
|
||||
# understand this and you get race conditions where a file gets
|
||||
# overwritten while it's linking. This makes the files look like separate
|
||||
# files so this race won't happen
|
||||
ln src/blowfish.c src/blowfish_eks.c || die
|
||||
ln src/mont.c src/mont_math.c || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
esetup.py test -vv
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user