New package: python3-zstandard-0.18.0

This commit is contained in:
Evgeny Ermakov 2021-12-31 11:01:00 +11:00 committed by classabbyamp
parent 20fa7f410a
commit cfb923113a
1 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,29 @@
# Template file for 'python3-zstandard'
pkgname=python3-zstandard
version=0.18.0
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 <evgeny.v.ermakov@gmail.com>"
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=a6c7e2b8d4ec262269ccbc7ce66073370a06d6a0fc866946b7ce429b97e0c4ac
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
}