python3-orjson 3.11.3-4

This commit is contained in:
2025-12-15 23:56:20 +03:00
parent 7fce3b6542
commit 312ace6cdf

View File

@@ -1,7 +1,7 @@
_name='orjson'
name='python3-orjson'
version='3.11.3'
release='3'
release='4'
desc="Fast, correct Python JSON library supporting dataclasses and datetimes"
desc_ru='Быстрая библиотека Python JSON с поддержкой dataclasses и datetime'
homepage='https://github.com/ijl/orjson'
@@ -104,17 +104,17 @@ build() {
}
check() {
local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
local _site_packages=$(python3 -c "import site; print(site.getsitepackages()[0])")
cd $_name-${version}
python -m installer --destdir=test_dir target/wheels/*.whl
python3 -m installer --destdir=test_dir target/wheels/*.whl
export PYTHONPATH="test_dir/$_site_packages:$PYTHONPATH"
pytest -vv
}
package() {
cd $_name-${version}
python -m installer --destdir="$pkgdir" --prefix=/usr target/wheels/*.whl
python3 -m installer --destdir="$pkgdir" --prefix=/usr target/wheels/*.whl
install -vDm 644 {CHANGELOG,README}.md -t "$pkgdir/usr/share/doc/$name/"
install -vDm 644 LICENSE-* -t "$pkgdir/usr/share/licenses/$name/"
}