Files
guru/dev-python/backrefs/backrefs-4.3.0.ebuild
Alessandro Barbieri c5316b13f8 dev-python/backrefs: extra dep to make tests working
Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2020-03-30 22:24:40 +02:00

45 lines
813 B
Bash

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6,7,8} )
inherit distutils-r1
DESCRIPTION="Wrapper around re or regex that adds additional back references"
HOMEPAGE="
https://github.com/facelessuser/backrefs
https://pypi.org/project/backrefs
"
SRC_URI="https://github.com/facelessuser/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
DEPEND="
test? (
dev-python/mock[${PYTHON_USEDEP}]
dev-python/regex[${PYTHON_USEDEP}]
)
"
BDEPEND="
doc? (
>=dev-python/mkdocs-material-2.2.5
dev-python/pyspelling
)
"
distutils_enable_tests pytest
python_compile_all() {
default
if use doc; then
mkdocs build || die "failed to make docs"
HTML_DOCS="site"
fi
}