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} )
8 inherit distutils-r1 prefix
10 DESCRIPTION="Python interface to lzo"
11 HOMEPAGE="https://github.com/jd-boyd/python-lzo"
12 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
16 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
18 RESTRICT="!test? ( test )"
25 dev-python/setuptools[${PYTHON_USEDEP}]
26 test? ( dev-python/nose[${PYTHON_USEDEP}] )"
29 distutils-r1_src_prepare
34 distutils_install_for_testing
35 PYTHONPATH="${TEST_DIR}"/lib nosetests -v || die "tests failed"