diff --git a/srcpkgs/python-voluptuous/template b/srcpkgs/python-voluptuous/template new file mode 100644 index 00000000000..9eaff84cd06 --- /dev/null +++ b/srcpkgs/python-voluptuous/template @@ -0,0 +1,28 @@ +# Template file for 'python-voluptuous' +pkgname=python-voluptuous +version=0.10.5 +revision=1 +noarch=yes +wrksrc="voluptuous-${version}" +build_style=python-module +pycompile_module="voluptuous" +hostmakedepends="python-setuptools python3-setuptools" +short_desc="Python2 data validation library" +maintainer="Joseph LaFreniere " +license="3-clause-BSD" +homepage="https://github.com/alecthomas/voluptuous" +distfiles="${PYPI_SITE}/v/voluptuous/voluptuous-${version}.tar.gz" +checksum=7a7466f8dc3666a292d186d1d871a47bf2120836ccb900d5ba904674957a2396 + +post_install() { + vlicense COPYING +} + +python3-voluptuous_package() { + pycompile_module="voluptuous" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/lib/python3* + vlicense COPYING + } +} diff --git a/srcpkgs/python3-voluptuous b/srcpkgs/python3-voluptuous new file mode 120000 index 00000000000..ef13a8ca1b9 --- /dev/null +++ b/srcpkgs/python3-voluptuous @@ -0,0 +1 @@ +python-voluptuous \ No newline at end of file