blob: efd59134de3623b38e4d99b9b35f9b585e5e5db7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
PYTHON_COMPAT=( python2_7 )
inherit twisted-r1
DESCRIPTION="A web templating framework that provides LivePage, an automatic AJAX toolkit"
HOMEPAGE="http://divmod.org/trac/wiki/DivmodNevow https://pypi.python.org/pypi/Nevow"
SRC_URI="mirror://pypi/${TWISTED_PN:0:1}/${TWISTED_PN}/${TWISTED_P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-linux"
IUSE="doc"
DEPEND="dev-python/twisted-core[${PYTHON_USEDEP}]
dev-python/twisted-web[${PYTHON_USEDEP}]
dev-python/zope-interface[${PYTHON_USEDEP}]"
RDEPEND="${DEPEND}"
TWISTED_PLUGINS=( nevow.plugins )
FAILING_TESTS=(
nevow/test/test_url.py
nevow/test/test_loaders.py
nevow/test/test_appserver.py
formless/test/test_freeform.py
)
python_test() {
# See bug 355237
rm -v ${FAILING_TESTS[@]} || die "can't remove failing tests"
trial formless nevow || die "tests failed with ${EPYTHON}"
}
python_install() {
distutils-r1_python_install
touch "${D}$(python_get_sitedir)"/nevow/plugins/dropin.cache || die
}
python_install_all() {
distutils-r1_python_install_all
# TODO: prevent installing it
rm -r "${D}"/usr/doc || die
}
|