python3-markdown-it-py 3.0.0-1

This commit is contained in:
Евгений Храмов 2025-04-07 16:45:09 +03:00
parent 2247819240
commit 8cf90dcc2d

@ -1,57 +1,39 @@
_pkgname=markdown-it-py
name='python3-markdown-it-py' name='python3-markdown-it-py'
version='3.0.0' version='3.0.0'
release='3' release='1'
desc='Python port of markdown-it. Markdown parsing, done right!' desc='Python port of markdown-it. Markdown parsing, done right'
homepage='https://github.com/executablebooks/markdown-it-py' homepage=''
license=('MIT') maintainer='Евгений Храмов <xpamych@yandex.ru>'
architectures=('all') architectures=('all')
license=('custom:Unknown')
provides=('markdown-it-py')
conflicts=('markdown-it-py')
deps=( deps=("python3")
'python3-mdurl' deps_arch=("python")
) deps_alpine=("python3")
build_deps=(
'python3-build'
'python3-flit-core'
'python3-installer'
'python3-pytest'
'python3-pytest-regressions'
'python3-mdit-py-plugins'
'python3-linkify-it-py'
)
build_deps_almalinux=(
'python3-build'
'python3.11-flit-core'
'python3-installer'
'python3-pytest'
'python3-pytest-regressions'
'python3-mdit-py-plugins'
'python3-linkify-it-py'
)
#opt_deps=(
# 'python-mdit_py_plugins: core plugins'
#)
sources=("https://github.com/executablebooks/markdown-it-py/archive/v$version.tar.gz") build_deps=("python3" "python3-pip")
checksums=('SKIP') build_deps_arch=("python" "python-pip")
build_deps_alpine=("python3" "py3-pip")
opt_deps=('python3-mdit-py-plugins: коллекция плагинов для markdown-it-py')
sources=("https://files.pythonhosted.org/packages/source/m/markdown-it-py/markdown-it-py-3.0.0.tar.gz")
checksums=('blake2b-256:38713b932df36c1a044d397a1f92d1cf91ee0a503d91e470cbd670aa66b07ed0')
build() { build() {
cd $_pkgname-$version cd "$srcdir/markdown-it-py-${version}"
python -m build --wheel --no-isolation
python -m build
}
check() {
cd $_pkgname-$version
python -m pytest tests
} }
package() { package() {
cd $_pkgname-$version cd "$srcdir/markdown-it-py-${version}"
pip install --root="${pkgdir}/" . --no-deps --ignore-installed --disable-pip-version-check
python -m installer -d "$pkgdir" dist/*.whl
install-license ./LICENSE ./$_pkgname/LICENSE
} }
files() {
echo ./usr/local/bin/markdown-it
printf '"%s" ' ./usr/local/lib/python3.*/site-packages/markdown_it/**/*
printf '"%s" ' ./usr/local/lib/python3.*/site-packages/markdown_it_py-${version}.dist-info/*
}