diff --git a/srcpkgs/python-blessings/template b/srcpkgs/python-blessings/template new file mode 100644 index 00000000000..2a50d761446 --- /dev/null +++ b/srcpkgs/python-blessings/template @@ -0,0 +1,31 @@ +# Template file for 'python-blessings' +pkgname=python-blessings +version=1.6 +revision=1 +noarch=yes +wrksrc="blessings-${version}" +build_style=python-module +pycompile_module="blessings" +hostmakedepends="python-setuptools python3-setuptools" +depends="python" +short_desc="Wrapper around terminal coloring, styling, and positioning (Python2)" +maintainer="Maurizio Porrato " +homepage="https://github.com/erikrose/blessings" +license="MIT" +distfiles="${PYPI_SITE}/b/blessings/blessings-${version}.tar.gz" +checksum=edc5713061f10966048bf6b40d9a514b381e0ba849c64e034c4ef6c1847d3007 + +post_install() { + vlicense LICENSE +} + +python3-blessings_package() { + noarch=yes + pycompile_module="blessings" + depends="python3" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/lib/python3* + vlicense LICENSE + } +} diff --git a/srcpkgs/python3-blessings b/srcpkgs/python3-blessings new file mode 120000 index 00000000000..bf277e1bbbc --- /dev/null +++ b/srcpkgs/python3-blessings @@ -0,0 +1 @@ +python-blessings \ No newline at end of file