backports/py3-rapidjson: upgrade to 1.12
This commit is contained in:
parent
3a5b050493
commit
c558ea4340
1 changed files with 17 additions and 12 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
|
# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
|
||||||
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
|
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
|
||||||
pkgname=py3-rapidjson
|
pkgname=py3-rapidjson
|
||||||
pkgver=1.10
|
pkgver=1.12
|
||||||
pkgrel=0
|
pkgrel=0
|
||||||
pkgdesc="Python3 wrapper around RapidJSON"
|
pkgdesc="Python3 wrapper around RapidJSON"
|
||||||
url="https://github.com/python-rapidjson/python-rapidjson"
|
url="https://github.com/python-rapidjson/python-rapidjson"
|
||||||
|
@ -11,9 +11,11 @@ depends="
|
||||||
python3
|
python3
|
||||||
"
|
"
|
||||||
makedepends="
|
makedepends="
|
||||||
|
py3-gpep517
|
||||||
py3-setuptools
|
py3-setuptools
|
||||||
rapidjson-dev
|
py3-wheel
|
||||||
python3-dev
|
python3-dev
|
||||||
|
rapidjson-dev
|
||||||
"
|
"
|
||||||
checkdepends="
|
checkdepends="
|
||||||
py3-pytest
|
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"
|
source="$pkgname-$pkgver.tar.gz::https://github.com/python-rapidjson/python-rapidjson/archive/refs/tags/v$pkgver.tar.gz"
|
||||||
builddir="$srcdir/"python-rapidjson-$pkgver
|
builddir="$srcdir/"python-rapidjson-$pkgver
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
default_prepare
|
||||||
|
|
||||||
|
# workaround setup.py complaining about "sources not found"
|
||||||
|
mkdir -v rapidjson/include
|
||||||
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
python3 setup.py \
|
gpep517 build-wheel \
|
||||||
--rj-include-dir=/usr/include/rapidjson \
|
--wheel-dir .dist \
|
||||||
build
|
--output-fd 3 3>&1 >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
|
@ -38,14 +47,10 @@ check() {
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
python3 setup.py \
|
python3 -m installer -d "$pkgdir" \
|
||||||
--rj-include-dir=/usr/include/rapidjson \
|
.dist/*.whl
|
||||||
install \
|
|
||||||
--skip-build \
|
|
||||||
--prefix=/usr \
|
|
||||||
--root="$pkgdir"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
cc77ea42e50f132771dfe6e0d9724204e39155e212f6e39b2ff4ccbdf1885dcedb5f50583d9da400c4d25eec9c66163c328b28534560e8a50847558ae0f43183 py3-rapidjson-1.10.tar.gz
|
15d021491c64db53352830d8f3f62c8b48476fcb001f97c174bcbb9053d973eb135ceb92f14290a58f6ad6c5dfb24d02f6385c8cad70f4a74f5a5726aa0728e7 py3-rapidjson-1.12.tar.gz
|
||||||
"
|
"
|
||||||
|
|
Loading…
Reference in a new issue