8347e17c44
Closes #14739. Signed-off-by: Enno Boland <gottox@voidlinux.eu>
36 lines
878 B
Bash
36 lines
878 B
Bash
# Template file for 'python-parse'
|
|
pkgname=python-parse
|
|
version=1.8.4
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="parse-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python"
|
|
pycompile_module="parse.py"
|
|
short_desc="Parse strings using the format() syntax (Python2)"
|
|
maintainer="Eivind Uggedal <eivind@uggedal.com>"
|
|
license="MIT"
|
|
homepage="https://github.com/r1chardj0n3s/parse"
|
|
distfiles="${PYPI_SITE}/p/parse/parse-${version}.tar.gz"
|
|
checksum=c3cdf6206f22aeebfa00e5b954fcfea13d1b2dc271c75806b6025b94fb490939
|
|
|
|
do_check() {
|
|
python3 setup.py test
|
|
}
|
|
|
|
post_install() {
|
|
sed -n '/Copyright/,/SOFTWARE\./p' parse.py >LICENSE
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-parse_package() {
|
|
noarch=yes
|
|
depends="python3"
|
|
pycompile_module="parse.py"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|