1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
10 DESCRIPTION="Password hashing framework supporting over 20 schemes"
11 HOMEPAGE="https://code.google.com/p/passlib/"
12 SRC_URI="mirror://pypi/p/${PN}/${P}.tar.gz"
19 RDEPEND="dev-python/bcrypt[${PYTHON_USEDEP}]"
20 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
22 test? ( dev-python/nose[${PYTHON_USEDEP}]
26 # https://code.google.com/p/passlib/issues/detail?id=50
27 # py3 on testing choaks on the suite
28 if ! python_is_python3; then
29 nosetests -w "${BUILD_DIR}"/lib \
30 -e test_90_django_reference -e test_91_django_generation \
31 -e test_77_fuzz_input -e test_config \
32 -e test_registry.py || die "Tests fail with ${EPYTHON}"
36 python_install_all() {
37 distutils-r1_python_install_all
38 use doc && dodoc docs/{*.rst,requirements.txt,lib/*.rst}