gentoo/dev-python/diskcache/diskcache-2.8.3.ebuild
Michał Górny cd3f25deb1
*/*: Clean PYTHON_COMPAT of obsolete impls
Closes: https://github.com/gentoo/gentoo/pull/14246
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-01-05 11:55:46 +01:00

43 lines
853 B
Bash

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 python3_6 )
inherit distutils-r1
HOMEPAGE="http://www.grantjenks.com/docs/diskcache/"
DESCRIPTION="Disk and file backed cache"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="doc test"
RESTRICT="!test? ( test )"
RDEPEND="
dev-python/django[${PYTHON_USEDEP}]
"
DEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
${RDEPEND}
dev-python/mock[${PYTHON_USEDEP}]
dev-python/nose[${PYTHON_USEDEP}]
)
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
"
python_compile_all() {
if use doc; then
emake -C docs html
HTML_DOCS=( docs/_build/html/. )
fi
}
python_test() {
nosetests -v || die "failed with ${PYTHON}"
}