mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 12:15:32 +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.
50 lines
1.1 KiB
Text
50 lines
1.1 KiB
Text
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py3-ujson
|
|
pkgver=5.7.0
|
|
pkgrel=0
|
|
pkgdesc="Fast Python JSON encoder and decoder"
|
|
url="https://github.com/ultrajson/ultrajson"
|
|
arch="all"
|
|
license="BSD-3-Clause"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-setuptools_scm
|
|
py3-wheel
|
|
python3-dev
|
|
"
|
|
checkdepends="
|
|
py3-pytest
|
|
py3-tz
|
|
"
|
|
source="https://pypi.io/packages/source/u/ujson/ujson-$pkgver.tar.gz"
|
|
builddir="$srcdir/ujson-$pkgver"
|
|
|
|
# secfixes:
|
|
# 5.4.0-r0:
|
|
# - CVE-2022-31116
|
|
# - CVE-2022-31117
|
|
# 5.2.0-r0:
|
|
# - CVE-2021-45958
|
|
|
|
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 pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
e18a1608a7fe79030e3ff307c9e95a0e238cd5049ee791eddbc07efa55853475d053268b80a8765023639ae8ff39f82b4ae2c04e82fc7dc5f3192a5134ec0757 ujson-5.7.0.tar.gz
|
|
"
|