1 # Copyright 1999-2014 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 if [[ "${PV}" == "9999" ]]; then
12 EGIT_REPO_URI="git://github.com/heynemann/${PN}.git"
15 SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
18 DESCRIPTION="An assertion library for Python"
19 HOMEPAGE="http://heynemann.github.io/preggy https://pypi.python.org/pypi/preggy"
23 KEYWORDS="~amd64 ~x86"
27 dev-python/six[${PYTHON_USEDEP}]
28 dev-python/unidecode[${PYTHON_USEDEP}]
33 dev-python/nose[${PYTHON_USEDEP}]
34 dev-python/coverage[${PYTHON_USEDEP}]
37 python_prepare_all() {
38 sed -i "s/packages=find_packages()/packages=find_packages(exclude=['tests', 'tests.*'])/" setup.py || die
39 distutils-r1_python_prepare_all
43 "${EPYTHON}" -c 'import nose; nose.run_exit()' -vv --detailed-errors --with-coverage --cover-package=preggy --cover-package=preggy.assertions --cover-package=preggy.assertions.types tests/ ||
44 die "tests failed with ${EPYTHON}"