1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 18:25:41 +03:00
aports/community/py3-markdown-it-py/APKBUILD

41 lines
1.4 KiB
Text

# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-markdown-it-py
pkgver=2.2.0
pkgrel=0
pkgdesc="Markdown parser, done right"
url="https://markdown-it-py.readthedocs.io/"
arch="noarch"
license="MIT"
depends="python3 py3-attrs py3-mdurl"
makedepends="py3-gpep517 py3-flit-core"
checkdepends="py3-pytest py3-pytest-benchmark"
source="https://github.com/executablebooks/markdown-it-py/archive/v$pkgver/py3-markdown-it-py-$pkgver.tar.gz"
builddir="$srcdir/markdown-it-py-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
# fixture 'data_regression' not found
# needs py3-pytest-regressions
pytest -k 'not test_linkify' \
--deselect=tests/test_tree.py::test_pretty \
--deselect=tests/test_api/test_main.py::test_table_tokens \
--deselect=tests/test_cmark_spec/test_spec.py::test_file \
--deselect=tests/test_port/test_references.py::test_use_existing_env \
--deselect=tests/test_port/test_references.py::test_store_labels \
--deselect=tests/test_port/test_references.py::test_inline_definitions
}
package() {
python3 -m installer -d "$pkgdir" \
dist/markdown_it_py-$pkgver-py3-none-any.whl
}
sha512sums="
84d6c15084bf33bdecdcbc8419322f2898bde20de6baeaee6c66c4e6ad9e47dfb8a14e2b1fcf71b8c42e7b61a7caed119919faf0faf6765aad85c186d91fe9d5 py3-markdown-it-py-2.2.0.tar.gz
"