1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 pypy )
12 DESCRIPTION="Backport of functools.lru_cache from Python 3.3"
13 HOMEPAGE="https://github.com/jaraco/backports.functools_lru_cache"
14 SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz"
18 KEYWORDS="~alpha amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 x86 ~amd64-linux"
21 RDEPEND="dev-python/backports[${PYTHON_USEDEP}]"
23 dev-python/setuptools[${PYTHON_USEDEP}]
24 >=dev-python/setuptools_scm-1.15.0[${PYTHON_USEDEP}]
26 >=dev-python/jaraco-packaging-3.2[${PYTHON_USEDEP}]
27 dev-python/rst-linker[${PYTHON_USEDEP}]
28 dev-python/sphinx[${PYTHON_USEDEP}]
31 >=dev-python/pytest-2.8[${PYTHON_USEDEP}]
35 S="${WORKDIR}/${MY_PN}-${PV}"
37 python_compile_all() {
40 sphinx-build . _build/html || die
41 HTML_DOCS=( docs/_build/html/. )
46 PYTHONPATH=. py.test || die "tests failed with ${EPYTHON}"
50 # avoid a collision with dev-python/backports
51 rm "${BUILD_DIR}"/lib/backports/__init__.py || die
52 distutils-r1_python_install --skip-build