From a6915025113280b1c1db3e1e90d52cec20d3c6d4 Mon Sep 17 00:00:00 2001 From: Toby Merz Date: Fri, 19 Oct 2018 09:38:47 +0200 Subject: [PATCH] New package: python3-3to2-1.1.1 closes #3950 --- srcpkgs/python3-3to2/template | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 srcpkgs/python3-3to2/template 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 +}