void-packages/srcpkgs/python3-commonmark/template
2021-10-09 08:00:25 -04:00

23 lines
745 B
Bash

# Template file for 'python3-commonmark'
pkgname=python3-commonmark
version=0.9.1
revision=2
wrksrc="commonmark-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
checkdepends="python3-wheel python3-flake8 python3-hypothesis python3-colorama"
short_desc="Parser for the CommonMark Markdown spec"
maintainer="Andrew Benson <abenson@gmail.com>"
license="BSD-3-Clause"
homepage="https://github.com/rtfd/commonmark.py"
distfiles="${PYPI_SITE}/c/commonmark/commonmark-${version}.tar.gz"
checksum=452f9dc859be7f06631ddcb328b6919c67984aca654e5fefb3914d54691aed60
post_extract() {
vsed -i commonmark/tests/run_spec_tests.py -e \
"/^import sys$/a sys.path.append('$wrksrc/build/lib')"
}
post_install() {
vlicense LICENSE
}