From bf75975ee2fc72b66370dad3d6f1e398b6cdebec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9=20=D0=A5=D1=80?= =?UTF-8?q?=D0=B0=D0=BC=D0=BE=D0=B2?= Date: Mon, 30 Sep 2024 19:32:22 +0300 Subject: [PATCH] gitea deps --- python3-markdown-it-py/alr.sh | 49 +++++++++++++++++++++++++++ python3-pygments/alr.sh | 64 +++++++++++++++++++++++++++++++++++ 2 files changed, 113 insertions(+) create mode 100644 python3-markdown-it-py/alr.sh create mode 100644 python3-pygments/alr.sh diff --git a/python3-markdown-it-py/alr.sh b/python3-markdown-it-py/alr.sh new file mode 100644 index 0000000..e19edc2 --- /dev/null +++ b/python3-markdown-it-py/alr.sh @@ -0,0 +1,49 @@ +_pkgname=markdown-it-py +name='python3-markdown-it-py' +version='3.0.0' +release='1' +desc='Python port of markdown-it. Markdown parsing, done right!' +homepage='https://github.com/executablebooks/markdown-it-py' +license=('MIT') +architectures=('all') + +deps=( + 'python3-mdurl' +) +build_deps=( + 'python3-build' + 'python3-flit-core' + 'python3-installer' + 'python-pytest' + 'python-pytest-regressions' + 'python-mdit_py_plugins' + 'python-linkify-it-py' +) + +#opt_deps=( +# 'python-mdit_py_plugins: core plugins' +#) + +sources=("https://github.com/executablebooks/markdown-it-py/archive/v$version.tar.gz") +checksums=('SKIP') + +build() { + cd $_pkgname-$version + + python -m build +} + +check() { + cd $_pkgname-$version + + python -m pytest tests +} + +package() { + cd $_pkgname-$version + + python -m installer -d "$pkgdir" dist/*.whl + + install LICENSE ./$name/LICENSE +} + diff --git a/python3-pygments/alr.sh b/python3-pygments/alr.sh new file mode 100644 index 0000000..4a7df04 --- /dev/null +++ b/python3-pygments/alr.sh @@ -0,0 +1,64 @@ +name='python3-pygments' +version='2.18.0' +release='1' +desc='Python syntax highlighter' +homepage='https://pygments.org/' +maintainer="Евгений Храмов " +architectures=('all') +license=('BSD-2-Clause') +provides=('pygmentize') +conflicts=('pygmentize') + +deps=( + 'python' +) + +build_deps=( + 'python3-setuptools' + 'python3-sphinx' + 'python3-wcag-contrast-ratio' + 'python3-build' + 'python3-installer' + 'python3-wheel' + 'python3-hatchling' + 'python3-pytest' + 'python3-lxml' +) +build_deps_almalinux=( + 'python3-setuptools' + 'python3-sphinx' + 'python3-wcag-contrast-ratio' + 'python3-build' + 'python3-installer' + 'python3-setuptools-wheel' + 'python3-hatchling' + 'python3-pytest' + 'python3-lxml' +) + +sources=("https://pypi.org/packages/source/p/pygments/pygments-$version.tar.gz") +checksums=('SKIP') + +build() { + cd pygments-$version + python -m build --wheel --no-isolation + make -C doc html +} + +check() { + cd pygments-$version + PYTHONDONTWRITEBYTECODE=1 pytest +} + +package() { + cd pygments-$version + + python -m installer --destdir="$pkgdir" dist/*.whl + install-license LICENSE ./python3-pygments/LICENSE + + mkdir -p "$pkgdir/usr/share/doc" + cp -rT doc/_build/html "$pkgdir/usr/share/doc/$name" + install -Dm644 doc/pygmentize.1 -t "$pkgdir/usr/share/man/man1" + install -Dm644 external/pygments.bashcomp \ + "$pkgdir/usr/share/bash-completion/completions/pygmentize" +}