Files
MSYS2-packages/python-fastbencode/PKGBUILD
Christoph Reiter 584da16df0 Update cython to 3.x
Since python-yaml needs cython 0.x add a cython0 package like Arch

Rebuild everything just to be sure
2023-08-28 22:04:21 +02:00

38 lines
832 B
Bash

# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
pkgname=python-fastbencode
pkgver=0.2
pkgrel=2
pkgdesc='Implementation of bencode with optional fast C extensions'
arch=('i686' 'x86_64')
url='https://github.com/breezy-team/fastbencode'
license=(spdx:GPL-2.0-or-later)
depends=(python)
makedepends=(
python-build
python-installer
python-setuptools
python-wheel
python-devel
cython
gcc
)
checkdepends=(python-pytest)
source=(https://pypi.io/packages/source/f/fastbencode/fastbencode-$pkgver.tar.gz)
sha256sums=('578eb9c4700d6705d71fbc8d7d57bca2cd987eca2cec1d9e77b9e0702db1e56f')
build() {
cd fastbencode-$pkgver
python -m build --wheel --no-isolation
}
check() {
cd fastbencode-$pkgver
python -m pytest
}
package() {
cd fastbencode-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
}