diff --git a/srcpkgs/python3-3to2/template b/srcpkgs/python3-3to2/template new file mode 100644 index 00000000000..2573529af0e --- /dev/null +++ b/srcpkgs/python3-3to2/template @@ -0,0 +1,20 @@ +# Template file for 'python3-3to2' +pkgname=python3-3to2 +version=1.1.1 +revision=1 +noarch=yes +wrksrc="3to2-${version}" +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 " +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 +}