diff --git a/srcpkgs/python-jmespath/template b/srcpkgs/python-jmespath/template new file mode 100644 index 00000000000..ed3cba3d84c --- /dev/null +++ b/srcpkgs/python-jmespath/template @@ -0,0 +1,30 @@ +# Template file for 'python-jmespath' +pkgname=python-jmespath +version=0.9.3 +revision=1 +wrksrc="jmespath.py-${version}" +build_style=python-module +pycompile_module=jmespath +noarch=yes +hostmakedepends="python-setuptools python3-setuptools" +makedepends="python-devel python3-devel" +short_desc="JSON Query language for Python2" +maintainer="yopito " +license="MIT" +homepage="http://jmespath.org" +distfiles="https://github.com/jmespath/jmespath.py/archive/${version}.tar.gz" +checksum=88ca5ca1e1718e9c476f6904469de18a02ec8306e077ed58983b5050ab7348ac + +post_install() { + vlicense LICENSE.txt +} + +python3-jmespath_package() { + pycompile_module=jmespath + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vlicense LICENSE.txt + vmove usr/lib/python3* + vmove /usr/bin/jp.py3 + } +} diff --git a/srcpkgs/python3-jmespath b/srcpkgs/python3-jmespath new file mode 120000 index 00000000000..a0dad3f3662 --- /dev/null +++ b/srcpkgs/python3-jmespath @@ -0,0 +1 @@ +python-jmespath \ No newline at end of file