You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-libs/stem/stem-1.5.4.ebuild

45 lines
1.2 KiB

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=(python3_6)
inherit vcs-snapshot 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.gz"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
DEPEND="test? ( dev-python/mock[${PYTHON_USEDEP}]
net-vpn/tor )
dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND="net-vpn/tor"
DOCS=( docs/{_static,_templates,api,tutorials,{change_log,api,contents,download,faq,index,tutorials}.rst} )
python_prepare_all() {
# Disable failing test
sed -i -e "/test_expand_path/a \
\ \ \ \ return" test/integ/util/system.py || die
sed -i -e "/test_parsing_with_example/a \
\ \ \ \ return" test/unit/manual.py || die
sed -i -e "/test_parsing_with_unknown_options/a \
\ \ \ \ return" test/unit/manual.py || die
sed -i -e "/test_saving_manual/a \
\ \ \ \ return" test/unit/manual.py || die
sed -i -e "/test_sdist_matches_git/a \
\ \ \ \ return" test/integ/installation.py || die
distutils-r1_python_prepare_all
}
python_test() {
${PYTHON} run_tests.py --all --target RUN_ALL || die
}