aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-markdown-it-py/APKBUILD
blob: ae60ffdf30ad84361a7df750f23b9cfa25b20c13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-markdown-it-py
pkgver=2.1.0
pkgrel=1
pkgdesc="Markdown parser, done right"
url="https://markdown-it-py.readthedocs.io/"
arch="noarch"
license="MIT"
depends="python3 py3-attrs py3-mdurl"
makedepends="py3-build py3-flit-core py3-installer"
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() {
	python3 -m build --no-isolation --wheel
}

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="
04e90538c8693f795aed2ed0a5bef4eaf0c12fac32cc0c2049c563e974b229940b9ceaea849ce86fa9804ccdd7be93145f3b6fc8d0774e96fafa0484368d0a88  py3-markdown-it-py-2.1.0.tar.gz
"