mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 03:35:38 +03:00
we never use pip in the venv manually made for tests- this might break 1-2 things unexpectedly, but - those should be looked at anyway - this has a severe speedup- even on a desktop machine with nvme, this makes an arbitrary venv go from 2.6s to <100ms(!) to make. a nice small optimisation.
43 lines
1.2 KiB
Text
43 lines
1.2 KiB
Text
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
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
|
|
"
|