diff options
Diffstat (limited to 'community/py3-simplejson/APKBUILD')
-rw-r--r-- | community/py3-simplejson/APKBUILD | 35 |
1 files changed, 24 insertions, 11 deletions
diff --git a/community/py3-simplejson/APKBUILD b/community/py3-simplejson/APKBUILD index 62c7c763eb6..e420242e427 100644 --- a/community/py3-simplejson/APKBUILD +++ b/community/py3-simplejson/APKBUILD @@ -1,31 +1,44 @@ # Contributor: Francesco Colista <fcolista@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=py3-simplejson -_pkgname=simplejson -pkgver=3.17.2 +pkgver=3.19.2 pkgrel=1 pkgdesc="Simple, fast, extensible JSON encoder/decoder for Python" -url="https://pypi.python.org/pypi/simplejson" +url="https://github.com/simplejson/simplejson" arch="all" license="MIT" -makedepends="py3-setuptools python3-dev" -source="$pkgname-$pkgver.tar.gz::https://github.com/simplejson/simplejson/archive/v$pkgver.tar.gz" -builddir="$srcdir"/$_pkgname-$pkgver +depends="python3" +makedepends=" + py3-gpep517 + py3-setuptools + py3-wheel + python3-dev + " +subpackages="$pkgname-pyc" +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() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } check() { - python3 setup.py test + 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 setup.py install --prefix=/usr --root="$pkgdir" - rm -Rf "$subpkgdir"/usr/lib/python*/site-packages/simplejson/tests/ + python3 -m installer -d "$pkgdir" \ + .dist/*.whl + rm -rf "$pkgdir"/usr/lib/python*/site-packages/simplejson/tests/ } -sha512sums="59428640d43fdc6927db752a36196f48d00818a87d924358deab7e498709515423ecdd34dece31364c5e8d64b63d99112fd4a4b8a03b9f9c6533268afc38e314 py3-simplejson-3.17.2.tar.gz" +sha512sums=" +6fc1967c5620d1a0492c591aa8b0b1d47839d492f63b030fb172402343fab754fb46e4baebaf5d84f1d30c357bbc325b05003cd5e92aabfdf6ad4ac003161452 simplejson-v3.19.2.tar.gz +" |