1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python{2_7,3_{4,5,6}} pypy{,3} )
9 DESCRIPTION="A torrent file parser"
10 HOMEPAGE="https://github.com/Fuuzetsu/torrentinfo"
11 SRC_URI="https://github.com/Fuuzetsu/torrentinfo/archive/v${PV}.tar.gz -> ${P}.tar.gz"
15 KEYWORDS="~amd64 ~x86"
19 dev-python/setuptools[${PYTHON_USEDEP}]
20 test? ( dev-python/nose[${PYTHON_USEDEP}] )
23 PATCHES=( "${FILESDIR}/${P}-fix-tests.patch" )
26 nosetests test/tests.py || die "tests failed with ${EPYTHON}"