backports/py3-rapidjson: upgrade to 1.12

This commit is contained in:
Antoine Martin 2023-11-24 13:29:18 -05:00
parent 3a5b050493
commit c558ea4340
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -1,7 +1,7 @@
# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=py3-rapidjson
pkgver=1.10
pkgver=1.12
pkgrel=0
pkgdesc="Python3 wrapper around RapidJSON"
url="https://github.com/python-rapidjson/python-rapidjson"
@ -11,9 +11,11 @@ depends="
python3
"
makedepends="
py3-gpep517
py3-setuptools
rapidjson-dev
py3-wheel
python3-dev
rapidjson-dev
"
checkdepends="
py3-pytest
@ -22,10 +24,17 @@ checkdepends="
source="$pkgname-$pkgver.tar.gz::https://github.com/python-rapidjson/python-rapidjson/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/"python-rapidjson-$pkgver
prepare() {
default_prepare
# workaround setup.py complaining about "sources not found"
mkdir -v rapidjson/include
}
build() {
python3 setup.py \
--rj-include-dir=/usr/include/rapidjson \
build
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
@ -38,14 +47,10 @@ check() {
}
package() {
python3 setup.py \
--rj-include-dir=/usr/include/rapidjson \
install \
--skip-build \
--prefix=/usr \
--root="$pkgdir"
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
cc77ea42e50f132771dfe6e0d9724204e39155e212f6e39b2ff4ccbdf1885dcedb5f50583d9da400c4d25eec9c66163c328b28534560e8a50847558ae0f43183 py3-rapidjson-1.10.tar.gz
15d021491c64db53352830d8f3f62c8b48476fcb001f97c174bcbb9053d973eb135ceb92f14290a58f6ad6c5dfb24d02f6385c8cad70f4a74f5a5726aa0728e7 py3-rapidjson-1.12.tar.gz
"