1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python{2_7,3_5,3_6} pypy )
10 DESCRIPTION="LZ4 Bindings for Python"
11 HOMEPAGE="https://pypi.org/project/lz4/ https://github.com/steeve/python-lz4"
12 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
16 KEYWORDS="amd64 arm x86 ~amd64-linux ~x86-linux"
18 RESTRICT="!test? ( test )"
21 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
22 test? ( dev-python/nose[${PYTHON_USEDEP}] )
25 python_prepare_all() {
27 -e '/nose/s:setup_requires:test_requires:g' \
30 cp "${FILESDIR}"/test.py "${S}"/tests
31 distutils-r1_python_prepare_all
35 esetup.py test || dies "Tests failed with ${EPYTHON}"