python3-markdown-it-py 3.0.0-1
This commit is contained in:
parent
2247819240
commit
8cf90dcc2d
@ -1,57 +1,39 @@
|
||||
_pkgname=markdown-it-py
|
||||
name='python3-markdown-it-py'
|
||||
version='3.0.0'
|
||||
release='3'
|
||||
desc='Python port of markdown-it. Markdown parsing, done right!'
|
||||
homepage='https://github.com/executablebooks/markdown-it-py'
|
||||
license=('MIT')
|
||||
release='1'
|
||||
desc='Python port of markdown-it. Markdown parsing, done right'
|
||||
homepage=''
|
||||
maintainer='Евгений Храмов <xpamych@yandex.ru>'
|
||||
architectures=('all')
|
||||
license=('custom:Unknown')
|
||||
provides=('markdown-it-py')
|
||||
conflicts=('markdown-it-py')
|
||||
|
||||
deps=(
|
||||
'python3-mdurl'
|
||||
)
|
||||
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'
|
||||
#)
|
||||
deps=("python3")
|
||||
deps_arch=("python")
|
||||
deps_alpine=("python3")
|
||||
|
||||
sources=("https://github.com/executablebooks/markdown-it-py/archive/v$version.tar.gz")
|
||||
checksums=('SKIP')
|
||||
build_deps=("python3" "python3-pip")
|
||||
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() {
|
||||
cd $_pkgname-$version
|
||||
|
||||
python -m build
|
||||
}
|
||||
|
||||
check() {
|
||||
cd $_pkgname-$version
|
||||
|
||||
python -m pytest tests
|
||||
cd "$srcdir/markdown-it-py-${version}"
|
||||
python -m build --wheel --no-isolation
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $_pkgname-$version
|
||||
|
||||
python -m installer -d "$pkgdir" dist/*.whl
|
||||
|
||||
install-license ./LICENSE ./$_pkgname/LICENSE
|
||||
cd "$srcdir/markdown-it-py-${version}"
|
||||
pip install --root="${pkgdir}/" . --no-deps --ignore-installed --disable-pip-version-check
|
||||
}
|
||||
|
||||
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/*
|
||||
}
|
Loading…
Reference in New Issue
Block a user