dev-python/pymdown-extensions: new package

Package-Manager: Portage-2.3.96, Repoman-2.3.21
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2020-03-27 17:58:38 +01:00
parent ac4b9b8949
commit 38b3dbe3d3
4 changed files with 77 additions and 14 deletions

View File

@@ -0,0 +1,50 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_6 )
inherit distutils-r1
MYPV="${PV/_/}"
DESCRIPTION="Extensions for Python Markdown."
HOMEPAGE="
https://github.com/facelessuser/pymdown-extensions
https://pypi.org/project/pymdown-extensions
"
SRC_URI="https://github.com/facelessuser/${PN}/archive/${MYPV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
RDEPEND=">=dev-python/markdown-3.2[${PYTHON_USEDEP}]"
BDEPEND="
doc? (
dev-python/mkdocs-git-revision-date-localized-plugin[${PYTHON_USEDEP}]
dev-python/mkdocs-material[${PYTHON_USEDEP}]
dev-python/pymdown-lexers[${PYTHON_USEDEP}]
dev-python/pyspelling[${PYTHON_USEDEP}]
)
"
DEPEND="
${RDEPEND}
test? (
dev-python/pyyaml[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
python_compile_all() {
default
if use doc; then
mkdocs build || die "failed to make docs"
HTML_DOCS="site"
fi
}