From 1d9c2c78cddac6ea421fa6ca441475d48fefce1d Mon Sep 17 00:00:00 2001 From: Evgeny Ermakov Date: Fri, 31 Dec 2021 11:01:00 +1100 Subject: [PATCH] New package: python3-zstandard-0.15.2 --- srcpkgs/python3-zstandard/template | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 srcpkgs/python3-zstandard/template diff --git a/srcpkgs/python3-zstandard/template b/srcpkgs/python3-zstandard/template new file mode 100644 index 000000000000..d3cd173b53e1 --- /dev/null +++ b/srcpkgs/python3-zstandard/template @@ -0,0 +1,28 @@ +# Template file for 'python3-zstandard' +pkgname=python3-zstandard +version=0.15.2 +revision=1 +wrksrc="python-zstandard-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +makedepends="python3-devel" +depends="python3" +checkdepends="python3-hypothesis" +short_desc="Python bindings to the Zstandard (zstd) compression library" +maintainer="Evgeny Ermakov " +license="BSD-3-Clause" +homepage="https://github.com/indygreg/python-zstandard" +distfiles="${homepage}/archive/${version}.tar.gz" +checksum=5f947c9b0a2e5b3831bff2e7132cfbd7cc22ea8a400da2304e0c089d5c22a876 + +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 +} + +post_install() { + vlicense LICENSE +}