diff --git a/srcpkgs/python3-commonmark/template b/srcpkgs/python3-commonmark/template new file mode 100644 index 00000000000..e09637ce8bb --- /dev/null +++ b/srcpkgs/python3-commonmark/template @@ -0,0 +1,23 @@ +# Template file for 'python3-commonmark' +pkgname=python3-commonmark +version=0.9.1 +revision=1 +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 " +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 +}