void-packages/srcpkgs/python3-regex/template

28 lines
817 B
Bash

# Template file for 'python3-regex'
pkgname=python3-regex
version=2024.5.15
revision=1
build_style=python3-module
hostmakedepends="python3-devel python3-setuptools"
makedepends="python3-devel"
depends="python3"
short_desc="Alternative regular expression module (Python3)"
maintainer="skmpz <dem.procopiou@gmail.com>"
license="CNRI-Python, Apache-2.0"
homepage="https://github.com/mrabarnett/mrab-regex"
changelog="https://raw.githubusercontent.com/mrabarnett/mrab-regex/hg/changelog.txt"
distfiles="${PYPI_SITE}/r/regex/regex-${version}.tar.gz"
checksum=d3ee02d9e5f482cc8309134a91eeaacbdd2261ba111b0fef3748eeb4913e6a2c
do_check() {
(cd build/lib* && python3 -m unittest regex/test_regex.py)
}
post_install() {
rm -f ${DESTDIR}/${py3_sitelib}/regex/test_regex.py
local i
for i in docs/*.* ; do
vdoc $i
done
}