# Contributor: Francesco Colista # Maintainer: Natanael Copa pkgname=py3-simplejson pkgver=3.18.3 pkgrel=0 pkgdesc="Simple, fast, extensible JSON encoder/decoder for Python" url="https://github.com/simplejson/simplejson" arch="all" license="MIT" depends="python3" makedepends=" py3-gpep517 py3-setuptools py3-wheel python3-dev " source="https://github.com/simplejson/simplejson/archive/refs/tags/v$pkgver/simplejson-v$pkgver.tar.gz" builddir="$srcdir"/simplejson-$pkgver provides="py-simplejson=$pkgver-r$pkgrel" # backwards compatibility replaces="py-simplejson" # backwards compatiblity build() { gpep517 build-wheel \ --wheel-dir dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages testenv testenv/bin/python3 -m installer dist/*.whl testenv/bin/python3 -m unittest discover } package() { python3 -m installer -d "$pkgdir" \ dist/*.whl rm -rf "$pkgdir"/usr/lib/python*/site-packages/simplejson/tests/ } sha512sums=" 54223e08775ab6277722342084bf56684588dd9dda574428cb73b791d37d0b74decef6082268c0389cc4586a534a19e62ec5738fa9ffffaee63f68e27fb465c8 simplejson-v3.18.3.tar.gz "