mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-20 22:01:11 +02:00
unicrypto: workaround for https://github.com/skelsec/unicrypto/issues/2
This commit is contained in:
parent
e1cf639318
commit
dd728f1915
1 changed files with 10 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{9..10} )
|
||||
|
||||
|
|
@ -21,3 +21,12 @@ DEPEND="${RDEPEND}"
|
|||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
#https://github.com/skelsec/unicrypto/issues/2
|
||||
#force pycryptodome backend
|
||||
sed -i -e "s|override_library = None|override_library = \'Crypto\'|" unicrypto/__init__.py || die
|
||||
#override_library = 'cryptography' for dev-python/cryptography
|
||||
#override_library = 'mbedtls' for net-libs/mbedtls
|
||||
eapply_user
|
||||
}
|
||||
Loading…
Reference in a new issue