* update python-lz4 to 4.3.2-1

This commit is contained in:
Alexander Baldeck 2023-07-28 13:17:53 +02:00
parent 75973ac689
commit 3ec3096c34

View File

@ -9,29 +9,33 @@
pkgname=python-lz4
_pkgname=lz4
pkgver=3.1.10
pkgrel=8
pkgver=4.3.2
pkgrel=1
pkgdesc="LZ4 bindings for Python"
arch=(x86_64 powerpc64le powerpc riscv64)
license=('BSD')
url="https://github.com/python-lz4/python-lz4"
depends=('python')
makedepends=('python-setuptools-scm' 'python-pkgconfig')
makedepends=('python-build' 'python-installer' 'python-pkgconfig' 'python-setuptools-scm' 'python-wheel')
checkdepends=('python-pytest' 'python-psutil')
source=("https://pypi.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-${pkgver}.tar.gz")
sha512sums=('61983e77fa445f59503ccf8ed5fe0605d79754cdeb166e16a7093a856b23369634db7d105d57b3829e680dad0a3728adec9d18dccd92c994347b74c5af95580e')
sha512sums=('c2e7d3ec0954110c9b21e562147e80c8abddd21ebb213491d1072454834151a0f3a0935c0f3eebec34c024fe6e79136ccf6363dcb5390aa03cb52489fcb4113c')
build() {
cd "$srcdir"/$_pkgname-$pkgver
python setup.py build
PYLZ4_EXPERIMENTAL=1 \
python -m build --wheel --no-isolation
}
check() {
cd "$srcdir"/$_pkgname-$pkgver
python -m pytest
mv lz4{,.bak}
python -m venv --system-site-packages test-env
test-env/bin/python -m installer dist/*.whl
test-env/bin/python -m pytest -v
}
package() {
cd $_pkgname-$pkgver
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
python -m installer --destdir="$pkgdir" dist/*.whl
}