This commit is contained in:
Anton Bolshakov 2022-07-04 17:27:16 +08:00
parent e1cf639318
commit dd728f1915
No known key found for this signature in database
GPG key ID: 32BDCED870788F04

View file

@ -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
}