summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Thode <prometheanfire@gentoo.org>2017-02-11 09:38:02 -0600
committerMatthew Thode <prometheanfire@gentoo.org>2017-02-11 09:38:21 -0600
commit748cb1fd8476c8c887f2a2b6d21a33381f90f1de (patch)
treebb64476577c12a40f095b55d2ff039ab4788e936 /dev-python/passlib
parentkde-frameworks: Remove KDE Frameworks 5.30.0 (diff)
downloadgentoo-748cb1fd8476c8c887f2a2b6d21a33381f90f1de.tar.gz
gentoo-748cb1fd8476c8c887f2a2b6d21a33381f90f1de.tar.bz2
gentoo-748cb1fd8476c8c887f2a2b6d21a33381f90f1de.zip
dev-python/passlib: making things optional via use flags for bug 608686
Package-Manager: portage-2.3.3
Diffstat (limited to 'dev-python/passlib')
-rw-r--r--dev-python/passlib/metadata.xml5
-rw-r--r--dev-python/passlib/passlib-1.7.1-r1.ebuild33
2 files changed, 38 insertions, 0 deletions
diff --git a/dev-python/passlib/metadata.xml b/dev-python/passlib/metadata.xml
index 98546fd9255a..2165eac1f821 100644
--- a/dev-python/passlib/metadata.xml
+++ b/dev-python/passlib/metadata.xml
@@ -16,6 +16,11 @@
<longdescription lang="en">
comprehensive password hashing framework supporting over 20 schemes
</longdescription>
+ <use>
+ <flag name="bcrypt">bcrpyt hash algoryptm support</flag>
+ <flag name="totp">time based one time password support</flag>
+ <flag name="scrypt">accelerated scrypt algoythm support</flag>
+ </use>
<upstream>
<remote-id type="pypi">passlib</remote-id>
<remote-id type="bitbucket">ecollins/passlib</remote-id>
diff --git a/dev-python/passlib/passlib-1.7.1-r1.ebuild b/dev-python/passlib/passlib-1.7.1-r1.ebuild
new file mode 100644
index 000000000000..752aae9c11fe
--- /dev/null
+++ b/dev-python/passlib/passlib-1.7.1-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_4,3_5} pypy )
+
+inherit distutils-r1
+
+DESCRIPTION="Password hashing framework supporting over 20 schemes"
+HOMEPAGE="https://bitbucket.org/ecollins/passlib/wiki/Home/"
+SRC_URI="mirror://pypi/p/${PN}/${P}.tar.gz"
+
+LICENSE="BSD-2"
+KEYWORDS="~amd64 ~arm64 ~x86"
+SLOT="0"
+IUSE="+bcrypt doc +scrypt test +totp"
+
+RDEPEND="bcrypt? ( dev-python/bcrypt[${PYTHON_USEDEP}] )
+ totp? ( dev-python/cryptography[${PYTHON_USEDEP}] )
+ scrypt? ( dev-python/scrypt[${PYTHON_USEDEP}] )"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( dev-python/nose[${PYTHON_USEDEP}] )"
+
+python_test() {
+ nosetests -w "${BUILD_DIR}"/lib || die "Tests fail with ${EPYTHON}"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+ use doc && dodoc docs/{*.rst,requirements.txt,lib/*.rst}
+}