From 692062999655a8711504e265ff8b49cc1e12ed01 Mon Sep 17 00:00:00 2001 From: Roberto Ricci Date: Sun, 31 Mar 2024 19:28:28 +0200 Subject: [PATCH] python3-zstandard: update to 0.22.0 - use bundled zstd - remove unnecessary pre_check() --- srcpkgs/python3-zstandard/template | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/srcpkgs/python3-zstandard/template b/srcpkgs/python3-zstandard/template index d59cbb09b965fc..76edc16fe6f7ec 100644 --- a/srcpkgs/python3-zstandard/template +++ b/srcpkgs/python3-zstandard/template @@ -1,11 +1,14 @@ # Template file for 'python3-zstandard' pkgname=python3-zstandard -version=0.21.0 -revision=3 +version=0.22.0 +revision=1 build_style=python3-module -make_build_args="--system-zstd" +# If the system's zstd is used and its version is not the same as +# the bundled zstd, importing the python module fails. +# https://github.com/indygreg/python-zstandard/issues/48#issuecomment-753344624 +#make_build_args="--system-zstd" hostmakedepends="python3-setuptools" -makedepends="python3-devel libzstd-devel" +makedepends="python3-devel" depends="python3" checkdepends="python3-hypothesis" short_desc="Python bindings to the Zstandard (zstd) compression library" @@ -14,15 +17,7 @@ license="BSD-3-Clause" homepage="https://github.com/indygreg/python-zstandard" changelog="https://raw.githubusercontent.com/indygreg/python-zstandard/main/docs/news.rst" distfiles="https://github.com/indygreg/python-zstandard/archive/${version}.tar.gz" -checksum=15adc6bfa629d48b0bb658e9eae94c484adb66a28738fa780478eebeb41599a5 - -pre_check() { - # The skipped test ignored due to failure, see: - # https://github.com/indygreg/python-zstandard/issues/147#issuecomment-874278901 - if [ "${XBPS_TARGET_MACHINE%-musl}" = i686 ]; then - vsed -i -e '/def test_estimated_compression_context_size/s/test//' tests/test_data_structures*.py - fi -} +checksum=34ce7ef020afca1344c538a778e2a2e30dc43b11509aa4cb5cf076228d959ca7 post_install() { vlicense LICENSE