# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-python/html5lib/html5lib-1.0_beta3.ebuild,v 1.2 2013/08/25 16:22:11 pinkbyte Exp $ EAPI=5 PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} pypy{1_9,2_0} ) PYTHON_REQ_USE="xml(+)" inherit distutils-r1 MY_P=${PN}-${PV/_beta/b} DESCRIPTION="HTML parser based on the HTML5 specification" HOMEPAGE="https://github.com/html5lib/html5lib-python/" SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" IUSE="test" RDEPEND="dev-python/six[${PYTHON_USEDEP}]" DEPEND="${RDEPEND} dev-python/setuptools[${PYTHON_USEDEP}] test? ( dev-python/nose[${PYTHON_USEDEP}] )" S=${WORKDIR}/${MY_P} python_test() { nosetests || die "Tests fail with ${EPYTHON}" }