dev-python/markdown-it-py: Add from Gentoo

It's from Gentoo commit b3678950eee3c9c9674ccf27c21b54be0ca4460f.
This commit is contained in:
Krzesimir Nowak 2024-08-02 17:19:06 +02:00
parent 0297c18963
commit 0aff9b8ebb
3 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST markdown-it-py-3.0.0.gh.tar.gz 275478 BLAKE2B ab264d6de015262e770b5da9c26a48a9fa40209119e38e12e4185aa8b5141986df62f2ff44d80c2d62732e75408b3a70bf35ae9b7ca899ae284636cc62ded710 SHA512 820265595ab650f5ac64419d5c2687d1ee361d2a0550b9d94e86ec826cfe5e89cbd69e59d6582aac41d3b95f00ce4a0b7213bf6cd590fdbd8fd9b743c7418759

View File

@ -0,0 +1,40 @@
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=flit
PYTHON_COMPAT=( python3_{10..13} pypy3 )
inherit distutils-r1
DESCRIPTION="Python port of markdown-it, Markdown parser"
HOMEPAGE="
https://pypi.org/project/markdown-it-py/
https://github.com/executablebooks/markdown-it-py/
"
SRC_URI="
https://github.com/executablebooks/markdown-it-py/archive/v${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
RDEPEND="
<dev-python/linkify-it-py-3[${PYTHON_USEDEP}]
dev-python/mdurl[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/pytest-regressions[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
EPYTEST_IGNORE=(
# No need to benchmark
benchmarking/
)

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="project">
<email>python@gentoo.org</email>
<name>Python</name>
</maintainer>
<stabilize-allarches/>
<upstream>
<remote-id type="pypi">markdown-it-py</remote-id>
<remote-id type="github">executablebooks/markdown-it-py</remote-id>
</upstream>
</pkgmetadata>