void-packages/srcpkgs/python3-parse/template

24 lines
625 B
Bash

# Template file for 'python3-parse'
pkgname=python3-parse
version=1.18.0
revision=1
wrksrc="parse-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3"
short_desc="Parse strings using the format() syntax (Python3)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/r1chardj0n3s/parse"
distfiles="${PYPI_SITE}/p/parse/parse-${version}.tar.gz"
checksum=91666032d6723dc5905248417ef0dc9e4c51df9526aaeef271eacad6491f06a4
do_check() {
python3 test_parse.py
}
post_install() {
sed -n '/Copyright/,/SOFTWARE\./p' parse.py >LICENSE
vlicense LICENSE
}