# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-libs/stem/stem-1.2.2.ebuild,v 1.3 2014/07/23 15:41:19 blueness Exp $ EAPI=5 PYTHON_COMPAT=(python2_7) inherit distutils-r1 DESCRIPTION="Stem is a Python controller library for Tor" HOMEPAGE="https://stem.torproject.org" SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.bz2" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64" IUSE="test" DEPEND="test? ( dev-python/mock[${PYTHON_USEDEP}] ) dev-python/setuptools[${PYTHON_USEDEP}]" RDEPEND="net-misc/tor" DOCS=( docs/{_static,_templates,api,tutorials,{change_log,api,contents,download,faq,index,tutorials}.rst} ) python_prepare_all() { sed -i -e "/test_expand_path/a \ \ \ \ \ return" test/integ/util/system.py || die sed -i -e "/test_info/a \ \ \ \ \ return" test/unit/interpreter/commands.py || die distutils-r1_python_prepare_all } python_test() { ${PYTHON} run_tests.py --all --target RUN_ALL || die }