dev-python/myst-parser: new package, add 0.18.1

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2022-11-22 10:19:24 +05:00
parent 2a62c2c328
commit 8f1a57ce98
3 changed files with 67 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST myst-parser-0.18.1.gh.tar.gz 769288 BLAKE2B 77f21ae4277ef4ed9020caad86ef3ea92a1efca35f7ab61203fe2125e4fab31a74a740db7a1f1d6ea0a576c24706b0997beea296d782eb5a07ba4e91a0a9e52d SHA512 4bc3a89480f175779da4f093aaa99a1516f76ab4107dcf8747b6614f347e91739f8596693f95529d76aedbb0c84b4efde4262517bc445aa7027d51e05e8b48bc

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>cyber+gentoo@sysrq.in</email>
<name>Anna</name>
</maintainer>
<upstream>
<doc>https://myst-parser.readthedocs.io/</doc>
<remote-id type="pypi">myst-parser</remote-id>
<remote-id type="github">executablebooks/MyST-Parser</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,53 @@
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..11} pypy3 )
DISTUTILS_USE_PEP517=flit
inherit distutils-r1 optfeature
MY_PN="MyST-Parser"
DESCRIPTION="An extended commonmark compliant parser, with bridges to docutils & sphinx"
HOMEPAGE="
https://pypi.org/project/myst-parser/
https://github.com/executablebooks/MyST-Parser
"
SRC_URI="https://github.com/executablebooks/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
S="${WORKDIR}/${MY_PN}-${PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
dev-python/docutils[${PYTHON_USEDEP}]
dev-python/jinja[${PYTHON_USEDEP}]
dev-python/markdown-it-py[${PYTHON_USEDEP}]
dev-python/mdit-py-plugins[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
dev-python/sphinx[${PYTHON_USEDEP}]
dev-python/typing-extensions[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/beautifulsoup4[${PYTHON_USEDEP}]
dev-python/pytest-param-files[${PYTHON_USEDEP}]
dev-python/pytest-regressions[${PYTHON_USEDEP}]
<dev-python/sphinx-5.2[${PYTHON_USEDEP}]
dev-python/sphinx-pytest[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
# TODO: package doc deps
#distutils_enable_sphinx docs \
# dev-python/sphinx_design \
# dev-python/sphinxcontrib-mermaid \
# dev-python/sphinxext-opengraph \
# dev-python/sphinxext-rediraffe
pkg_postinst() {
optfeature "linkify plugin support" dev-python/linkify-it-py
}