From 89cb9bc6e981dc695000bb819ae1f52c057b483e Mon Sep 17 00:00:00 2001 From: Andrew Benson Date: Sat, 20 Feb 2021 12:55:06 -0600 Subject: [PATCH] New package: python3-commonmark-0.9.1 --- srcpkgs/python3-commonmark/template | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 srcpkgs/python3-commonmark/template 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 +}