void-packages/srcpkgs/python-jsonpointer/template

42 lines
1.2 KiB
Bash

# Template file for 'python-jsonpointer'
pkgname=python-jsonpointer
version=1.12
revision=1
noarch=yes
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=819b6dd4fd0a18ac219e02a0117f24b2d31296b0c475c33862cfa9a1616d62c3
alternatives="jsonpointer:jsonpointer:/usr/bin/jsonpointer2"
post_install() {
vlicense COPYING LICENSE
}
python3-jsonpointer_package() {
noarch=yes
depends="python3"
pycompile_module="jsonpointer.py"
replaces="python3.4-jsonpointer>=0"
short_desc="${short_desc/Python2/Python3}"
alternatives="jsonpointer:jsonpointer:/usr/bin/jsonpointer3"
pkg_install() {
vmove usr/bin/jsonpointer3
vmove usr/lib/python3*
vlicense COPYING LICENSE
}
}
python3.4-jsonpointer_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-jsonpointer>=${version}_${revision}"
}