1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python{2_7,3_6} pypy3 )
9 DESCRIPTION="Python bindings for the low-level FUSE API"
10 HOMEPAGE="https://bitbucket.org/nikratio/python-llfuse/ https://pypi.org/project/llfuse/"
11 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.bz2"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="doc examples test"
17 RESTRICT="!test? ( test )"
19 RDEPEND=">=sys-fs/fuse-2.8.0:0
20 $(python_gen_cond_dep 'dev-python/contextlib2[${PYTHON_USEDEP}]' python2_7 pypy)
23 dev-python/setuptools[${PYTHON_USEDEP}]
28 dev-python/pytest[${PYTHON_USEDEP}]
32 PATCHES=( "${FILESDIR}"/${PN}-1.3-cflags.patch )
35 py.test -v || die "Tests failed under ${EPYTHON}"
38 python_install_all() {
39 use doc && local HTML_DOCS=( doc/html/. )
40 use examples && dodoc -r examples
41 distutils-r1_python_install_all