51 lines
1.3 KiB
Text
51 lines
1.3 KiB
Text
# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
|
|
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
|
|
pkgname=py3-rapidjson
|
|
pkgver=1.10
|
|
pkgrel=0
|
|
pkgdesc="Python3 wrapper around RapidJSON"
|
|
url="https://github.com/python-rapidjson/python-rapidjson"
|
|
arch="all"
|
|
license="MIT"
|
|
depends="
|
|
python3
|
|
"
|
|
makedepends="
|
|
py3-setuptools
|
|
rapidjson-dev
|
|
python3-dev
|
|
"
|
|
checkdepends="
|
|
py3-pytest
|
|
py3-tz
|
|
"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/python-rapidjson/python-rapidjson/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir/"python-rapidjson-$pkgver
|
|
|
|
build() {
|
|
python3 setup.py \
|
|
--rj-include-dir=/usr/include/rapidjson \
|
|
build
|
|
}
|
|
|
|
check() {
|
|
PYTHONPATH="$(echo "$PWD"/build/lib.linux*)" pytest \
|
|
--ignore benchmarks \
|
|
--deselect tests/test_base_types.py::test_base_values \
|
|
--deselect tests/test_unicode.py::test_unicode_decode_error \
|
|
--deselect tests/test_validator.py::test_additional_and_pattern_properties_valid \
|
|
#
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py \
|
|
--rj-include-dir=/usr/include/rapidjson \
|
|
install \
|
|
--skip-build \
|
|
--prefix=/usr \
|
|
--root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
cc77ea42e50f132771dfe6e0d9724204e39155e212f6e39b2ff4ccbdf1885dcedb5f50583d9da400c4d25eec9c66163c328b28534560e8a50847558ae0f43183 py3-rapidjson-1.10.tar.gz
|
|
"
|