Files
MSYS2-packages/python-fastbencode/PKGBUILD
Christoph Reiter a0902f1e21 Use pypi PURLs instead of plain pypi names
This allows us to include a version and we already use PURL
for other things, so might as well remove the pypi special case.

Normalize the names, since that is required for PURLs.
2025-02-16 20:58:55 +01:00

40 lines
869 B
Bash

# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
pkgname=python-fastbencode
pkgver=0.2
pkgrel=6
pkgdesc='Implementation of bencode with optional fast C extensions'
arch=('i686' 'x86_64')
url='https://github.com/breezy-team/fastbencode'
msys2_references=(
"purl: pkg:pypi/fastbencode"
)
license=(spdx:GPL-2.0-or-later)
depends=(python)
makedepends=(
python-build
python-installer
python-setuptools
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
}