diff --git a/srcpkgs/python-backports.shutil_get_terminal_size/template b/srcpkgs/python-backports.shutil_get_terminal_size/template new file mode 100644 index 00000000000..33d31c5d9b2 --- /dev/null +++ b/srcpkgs/python-backports.shutil_get_terminal_size/template @@ -0,0 +1,21 @@ +# Template file for 'python-backports.shutil_get_terminal_size' +pkgname=python-backports.shutil_get_terminal_size +version=1.0.0 +revision=1 +noarch=yes +wrksrc="backports.shutil_get_terminal_size-${version}" +build_style=python-module +pycompile_module="backports" +hostmakedepends="python-setuptools" +depends="python-backports" +short_desc="Backport of the get_terminal_size function from Python 3.3's shutil" +maintainer="Alessio Sergi " +homepage="https://github.com/chrippa/backports.shutil_get_terminal_size" +license="MIT" +distfiles="https://pypi.python.org/packages/ec/9c/368086faa9c016efce5da3e0e13ba392c9db79e3ab740b763fe28620b18b/backports.shutil_get_terminal_size-${version}.tar.gz" +checksum=713e7a8228ae80341c70586d1cc0a8caa5207346927e23d09dcbcaf18eadec80 + +post_install() { + # namespace provided by python-backports package + rm -f ${DESTDIR}/usr/lib/python*/site-packages/backports/__init__.py +}