void-packages/srcpkgs/python-jsonpointer/template
2016-05-01 01:34:48 +02:00

36 lines
1.1 KiB
Bash

# Template file for 'python-jsonpointer'
pkgname=python-jsonpointer
version=1.10
revision=2
noarch=yes
wrksrc="jsonpointer-${version}"
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-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=9fa5dcac35eefd53e25d6cd4c310d963c9f0b897641772cd6e5e7b89df7ee0b1
alternatives="jsonpointer:jsonpointer:/usr/bin/jsonpointer2.7"
post_install() {
vlicense COPYING LICENSE
}
python3.4-jsonpointer_package() {
noarch=yes
depends="python3.4"
pycompile_version="3.4"
pycompile_module="jsonpointer.py"
short_desc="${short_desc/Python2/Python3.4}"
alternatives="jsonpointer:jsonpointer:/usr/bin/jsonpointer3.4"
pkg_install() {
vmove usr/bin/jsonpointer3.4
vmove usr/lib/python3.4
vlicense COPYING LICENSE
}
}