2015-03-07 22:22:21 +03:00
|
|
|
# Copyright 1999-2015 Gentoo Foundation
|
2014-05-04 19:59:26 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-08-10 23:59:40 +03:00
|
|
|
# $Id$
|
2014-05-04 19:59:26 +04:00
|
|
|
|
|
|
|
EAPI=5
|
|
|
|
|
2014-05-06 12:29:03 +04:00
|
|
|
PYTHON_COMPAT=( python2_7 pypy )
|
2014-05-04 19:59:26 +04:00
|
|
|
|
|
|
|
inherit distutils-r1
|
|
|
|
|
|
|
|
DESCRIPTION="Enthought Tool Suite: collection of core-level utility modules"
|
|
|
|
HOMEPAGE="https://github.com/enthought/encore"
|
|
|
|
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="BSD"
|
|
|
|
SLOT="0"
|
2015-03-09 22:48:48 +03:00
|
|
|
KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
|
2014-05-06 12:29:03 +04:00
|
|
|
IUSE="test"
|
2014-05-04 19:59:26 +04:00
|
|
|
|
2014-05-06 12:29:03 +04:00
|
|
|
RDEPEND="virtual/python-futures[${PYTHON_USEDEP}]
|
|
|
|
dev-python/requests[${PYTHON_USEDEP}]"
|
|
|
|
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
|
|
|
test? ( ${RDEPEND}
|
2014-05-04 19:59:26 +04:00
|
|
|
dev-python/nose[${PYTHON_USEDEP}]
|
2014-05-06 12:29:03 +04:00
|
|
|
dev-python/mock[${PYTHON_USEDEP}] )"
|
2014-05-04 19:59:26 +04:00
|
|
|
|
2014-05-06 12:29:03 +04:00
|
|
|
PATCHES=( "${FILESDIR}"/${P}-pypy-tests.patch )
|
2014-05-04 19:59:26 +04:00
|
|
|
|
|
|
|
python_test() {
|
2014-05-06 12:29:03 +04:00
|
|
|
"${PYTHON}" -m unittest discover ./${PN}/events || die
|
|
|
|
# PYTHONPATH goes astray & '-m unittest discover' loses its way. nose works
|
|
|
|
# https://github.com/enthought/encore/issues/84
|
|
|
|
# tests for storage simply aren't written to cater to pypy
|
|
|
|
if [[ "${EPYTHON}" == python2.7 ]]; then
|
|
|
|
nosetests ./${PN}/storage || die
|
2014-05-04 19:59:26 +04:00
|
|
|
fi
|
|
|
|
}
|