python-fastbencode: Update to 0.3.6 (#5660)

This commit is contained in:
Christoph Reiter 2025-09-22 15:51:16 +02:00 committed by GitHub
parent bc75e1f0ac
commit b2044cc954
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,7 @@
# Maintainer: Christoph Reiter <reiter.christoph@gmail.com> # Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
pkgname=python-fastbencode pkgname=python-fastbencode
pkgver=0.3.2 pkgver=0.3.6
pkgrel=1 pkgrel=1
pkgdesc='Implementation of bencode with optional fast C extensions' pkgdesc='Implementation of bencode with optional fast C extensions'
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
@ -15,25 +15,31 @@ makedepends=(
python-build python-build
python-installer python-installer
python-setuptools python-setuptools
python-setuptools-rust
python-devel python-devel
cython
gcc gcc
) )
checkdepends=(python-pytest) checkdepends=(python-pytest)
source=(https://pypi.io/packages/source/f/fastbencode/fastbencode-$pkgver.tar.gz) source=("https://pypi.io/packages/source/f/fastbencode/fastbencode-$pkgver.tar.gz")
sha256sums=('a34c32c504b0ec9de1a499346ed24932359eb46234b28b70975a50fdfaa14ab5') sha256sums=('114f853ebbb0a5168ac7ca4337bd9a542105e3d403b970111bfef16e0037c1c5')
build() { build() {
cd fastbencode-$pkgver cd "fastbencode-$pkgver"
# pyo3 doesn't support cygwin yet, so pass the python lib directly
local link_arg=$(python -c "import sysconfig; print(sysconfig.get_config_var('LIBPYTHON'))")
export RUSTFLAGS="-C link-arg=$link_arg"
python -m build --wheel --no-isolation python -m build --wheel --no-isolation
} }
check() { check() {
cd fastbencode-$pkgver cd "fastbencode-$pkgver"
python -m pytest
python -m unittest discover -v
} }
package() { package() {
cd fastbencode-$pkgver cd "fastbencode-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl python -m installer --destdir="$pkgdir" dist/*.whl
} }