mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-21 14:21:02 +02:00
pycryptodome: unfork
This commit is contained in:
parent
91ff3cef84
commit
7a0b920ccd
6 changed files with 1 additions and 124 deletions
|
|
@ -1,2 +0,0 @@
|
|||
DIST pycryptodomex-3.9.6.tar.gz 15453069 BLAKE2B f1bcca0f84738a1def485c0267373dab0c96772caf0c444cd78be758ccacfb6e3b577c611596f709ddbb1ec9e4f02506926fd87911c32a8217d451ede2e00e5a SHA512 14e2ff66046ea3629a6bd63446d1443135f46f9bc45afe15aca174a8f1949af2426a54f04624747d021b9ded70215eb965be90e6948d9566b60816ebaf050f70
|
||||
DIST pycryptodomex-3.9.7.tar.gz 15453116 BLAKE2B 3fad654a51e580ce6c8bdc2473c19293e7ad359fa81d01167ee3af938bc2f17fe8cf3abda75f8a4e8c0c5221f5abdc0cacaaaea38ab5450f419716a2858f2962 SHA512 50964f3fb1baa771d63eedf7f9b976670341eaeed3adf6935ab180aa5e866d88ba714314f570746cc1f62893a8c799f9126c09653591650137cf1f2d5d4e0a25
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
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'],
|
||||
),
|
||||
]
|
||||
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>unknown@pentoo.ch</email>
|
||||
<name>Author Unknown</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
|
@ -1,46 +0,0 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} pypy{,3} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A self-contained cryptographic library for Python"
|
||||
HOMEPAGE="https://www.pycryptodome.org"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2 Unlicense"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm ~arm64 x86"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
dev-libs/gmp:0
|
||||
virtual/python-cffi[${PYTHON_USEDEP}]"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
#Gentoo pycryptodome patches
|
||||
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
|
||||
}
|
||||
|
|
@ -1,46 +0,0 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} pypy{,3} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A self-contained cryptographic library for Python"
|
||||
HOMEPAGE="https://www.pycryptodome.org"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2 Unlicense"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm ~arm64 x86"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
dev-libs/gmp:0
|
||||
virtual/python-cffi[${PYTHON_USEDEP}]"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
#Gentoo pycryptodome patches
|
||||
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
|
||||
}
|
||||
|
|
@ -63,6 +63,7 @@ dev-python/pywerview
|
|||
dev-python/jsbeautifier
|
||||
|
||||
############ Gentoo unstable ======================
|
||||
=dev-python/pycryptodomex-3.9*
|
||||
~dev-python/ldap3-2.7
|
||||
~dev-python/requests-credssp-1.1.1 ~amd64
|
||||
~dev-python/nltk-2.0.1_rc1
|
||||
|
|
|
|||
Loading…
Reference in a new issue