Install this version:
emerge -a =dev-python/unicrypto-9999
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-python/unicrypto-9999
Or alternatively:
emerge --autounmask-write -a =dev-python/unicrypto-9999
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 9999 | 8 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{12..14} )
inherit distutils-r1 git-r3
DESCRIPTION="Unified interface for cryptographic libraries"
HOMEPAGE="https://github.com/skelsec/unicrypto"
EGIT_REPO_URI="https://github.com/skelsec/${PN}.git"
LICENSE="MIT"
SLOT="0"
IUSE="test"
CDEPEND="dev-python/cryptography[${PYTHON_USEDEP}]
dev-python/mbedtls[${PYTHON_USEDEP}]"
RDEPEND="|| ( dev-python/pycryptodome[${PYTHON_USEDEP}]
${CDEPEND} )"
BDEPEND="test? ( ${CDEPEND} )"
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
python_prepare_all() {
# use pycryptodome instead of pycryptodomex
sed -i 's/Cryptodome/Crypto/' unicrypto/__init__.py \
unicrypto/backends/pycryptodomex/{AES,DES,RC4,TDES}.py \
tests/trace || die "sed failed for cryptodomex"
distutils-r1_python_prepare_all
}
Manage flags for this package:
euse -i <flag> -p dev-python/unicrypto |
euse -E <flag> -p dev-python/unicrypto |
euse -D <flag> -p dev-python/unicrypto
|| ( dev-python/pycryptodome[] dev-python/cryptography[] dev-python/mbedtls[] )
test? ( dev-python/cryptography[] dev-python/mbedtls[] )