void-packages/srcpkgs/python-parse/template
2019-03-01 12:04:45 -03:00

37 lines
906 B
Bash

# Template file for 'python-parse'
pkgname=python-parse
version=1.11.1
revision=1
archs=noarch
wrksrc="parse-${version}"
build_style=python-module
pycompile_module="parse.py"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
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=870dd675c1ee8951db3e29b81ebe44fd131e3eb8c03a79483a58ea574f3145c2
do_check() {
python2 setup.py test
python3 setup.py test
}
post_install() {
sed -n '/Copyright/,/SOFTWARE\./p' parse.py >LICENSE
vlicense LICENSE
}
python3-parse_package() {
archs=noarch
depends="python3"
pycompile_module="parse.py"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}