commit: 83498ff6d0ec177d3224918c526d4ddc2e41dd2d Author: Michael Seifert <m.seifert <AT> digitalernachschub <DOT> de> AuthorDate: Fri Oct 29 07:38:48 2021 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Fri Oct 29 15:30:11 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83498ff6
dev-python/passlib: Replaced IUSE entries for optional runtime dependencies with optfeature messages Bug: https://bugs.gentoo.org/820668 Signed-off-by: Michael Seifert <m.seifert <AT> digitalernachschub.de> Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> dev-python/passlib/passlib-1.7.4-r1.ebuild | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/dev-python/passlib/passlib-1.7.4-r1.ebuild b/dev-python/passlib/passlib-1.7.4-r1.ebuild index 5ed95834819..80df1c62662 100644 --- a/dev-python/passlib/passlib-1.7.4-r1.ebuild +++ b/dev-python/passlib/passlib-1.7.4-r1.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{8..10} pypy3 ) -inherit distutils-r1 +inherit distutils-r1 optfeature DESCRIPTION="Password hashing framework supporting over 20 schemes" HOMEPAGE="https://foss.heptapod.net/python-libs/passlib/wikis/home" @@ -14,11 +14,8 @@ SRC_URI="mirror://pypi/p/${PN}/${P}.tar.gz" LICENSE="BSD-2" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos" SLOT="0" -IUSE="+bcrypt doc +scrypt +totp" +IUSE="doc" -RDEPEND="bcrypt? ( dev-python/bcrypt[${PYTHON_USEDEP}] ) - totp? ( dev-python/cryptography[${PYTHON_USEDEP}] ) - scrypt? ( dev-python/scrypt[${PYTHON_USEDEP}] )" BDEPEND=" test? ( dev-python/bcrypt[${PYTHON_USEDEP}] @@ -32,3 +29,9 @@ python_install_all() { distutils-r1_python_install_all use doc && dodoc docs/{*.rst,requirements.txt,lib/*.rst} } + +pkg_postinst() { + optfeature "bcrypt support" dev-python/bcrypt + optfeature "scrypt support" dev-python/scrypt + optfeature "Time-based One-Time Password (TOTP) support" dev-python/cryptography +}
