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.9
|
|
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="
|
|
d3f4c06d021058ea42f01f676e77dfa84997a681d548582060d20713878ecf73ada257186026847de43718764078f7e3a2467a165fa6d8b15b2f3e3d4bded4e1 py3-rapidjson-1.9.tar.gz
|
|
"
|