summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Seifert <m.seifert@digitalernachschub.de>2021-10-29 09:38:48 +0200
committerArthur Zamarin <arthurzam@gentoo.org>2021-10-29 18:30:11 +0300
commit83498ff6d0ec177d3224918c526d4ddc2e41dd2d (patch)
tree6a897699cc7bc26fe1bd9f1be4579aec9832a603 /dev-python/passlib
parentapp-admin/ansible-base: Added explicit test dependency on dev-python/bcrypt (diff)
downloadgentoo-83498ff6d0ec177d3224918c526d4ddc2e41dd2d.tar.gz
gentoo-83498ff6d0ec177d3224918c526d4ddc2e41dd2d.tar.bz2
gentoo-83498ff6d0ec177d3224918c526d4ddc2e41dd2d.zip
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@digitalernachschub.de> Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-python/passlib')
-rw-r--r--dev-python/passlib/passlib-1.7.4-r1.ebuild13
1 files 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 5ed95834819e..80df1c626623 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
+}