1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 python3_{6,7} )
10 DESCRIPTION="A better directory iterator and faster os.walk()"
11 HOMEPAGE="https://github.com/benhoyt/scandir"
12 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
16 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
18 RESTRICT="!test? ( test )"
20 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
23 ${EPYTHON} test/run_tests.py -v || die "tests failed under ${EPYTHON}"