void-packages/srcpkgs/python-jsonpointer/template

35 lines
1.0 KiB
Bash

# Template file for 'python-jsonpointer'
pkgname=python-jsonpointer
version=2.0
revision=1
archs=noarch
wrksrc="jsonpointer-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
pycompile_module="jsonpointer.py"
short_desc="Resolve JSON Pointers according to RFC 6901 (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/stefankoegl/python-json-pointer"
license="3-clause-BSD"
distfiles="${PYPI_SITE}/j/jsonpointer/jsonpointer-${version}.tar.gz"
checksum=c192ba86648e05fdae4f08a17ec25180a9aef5008d973407b581798a83975362
alternatives="jsonpointer:jsonpointer:/usr/bin/jsonpointer2"
post_install() {
vlicense LICENSE.txt LICENSE
}
python3-jsonpointer_package() {
archs=noarch
depends="python3"
pycompile_module="jsonpointer.py"
short_desc="${short_desc/Python2/Python3}"
alternatives="jsonpointer:jsonpointer:/usr/bin/jsonpointer3"
pkg_install() {
vmove usr/bin/jsonpointer3
vmove usr/lib/python3*
vlicense LICENSE.txt LICENSE
}
}