void-packages/srcpkgs/python-jmespath/template
2020-03-06 07:12:50 +01:00

32 lines
848 B
Bash

# Template file for 'python-jmespath'
pkgname=python-jmespath
version=0.9.5
revision=1
archs=noarch
wrksrc="jmespath.py-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="JSON Query language for Python2"
maintainer="yopito <pierre.bourgin@free.fr>"
license="MIT"
homepage="http://jmespath.org"
distfiles="https://github.com/jmespath/jmespath.py/archive/${version}.tar.gz"
checksum=74d5baa70e6e43fd51253a435954fbd2d994ecd9eeb372f6c5cd694fb2bdcd76
alternatives="jmespath:jp.py:/usr/bin/jp.py2"
post_install() {
vlicense LICENSE.txt
}
python3-jmespath_package() {
archs=noarch
depends="python3"
short_desc="${short_desc/Python2/Python3}"
alternatives="jmespath:jp.py:/usr/bin/jp.py3"
pkg_install() {
vlicense LICENSE.txt
vmove usr/lib/python3*
vmove usr/bin/*3
}
}