void-packages/srcpkgs/python-simplejson/template
maxice8 2a19b58446
python-simplejson: update to 3.15.0.
Closes #14356.

Signed-off-by: Enno Boland <gottox@voidlinux.eu>
2018-05-13 14:37:29 +02:00

33 lines
968 B
Bash

# Template file for 'python-simplejson'
pkgname=python-simplejson
version=3.15.0
revision=1
wrksrc="simplejson-${version}"
build_style=python-module
pycompile_module="simplejson"
hostmakedepends="python-setuptools python3-setuptools"
makedepends="python-devel python3-devel"
short_desc="Simple, fast, extensible JSON encoder/decoder for Python2"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="MIT, AFL-2.1"
homepage="https://github.com/simplejson/simplejson"
#changelog="https://raw.githubusercontent.com/simplejson/simplejson/master/CHANGES.txt"
distfiles="${PYPI_SITE}/s/simplejson/simplejson-${version}.tar.gz"
checksum=ad332f65d9551ceffc132d0a683f4ffd12e4bc7538681100190d577ced3473fb
do_check() {
python3 setup.py test
}
post_install() {
vlicense LICENSE.txt LICENSE
}
python3-simplejson_package() {
pycompile_module="simplejson"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE.txt LICENSE
}
}