void-packages/srcpkgs/python3-3to2/template

19 lines
586 B
Bash

# Template file for 'python3-3to2'
pkgname=python3-3to2
version=1.1.1
revision=6
build_style=python3-module
pycompile_module="lib3to2"
hostmakedepends="python3-setuptools unzip"
depends="python3"
short_desc="Refactors valid Python 3.x syntax into valid 2.x syntax"
maintainer="shizonic <realtiaz@gmail.com>"
license="Apache-2.0"
homepage="https://bitbucket.org/amentajo/lib3to2"
distfiles="${PYPI_SITE}/3/3to2/3to2-${version}.zip"
checksum=fef50b2b881ef743f269946e1090b77567b71bb9a9ce64b7f8e699b562ff685c
pre_build() {
sed -i 's/Exception, err:/Exception as err:/' lib3to2/build.py
}