archrelease: copy trunk to extra-x86_64
[arch-packages.git] / python-fastbencode / trunk / PKGBUILD
blob49658a11e6cd7bcc7e9275d394b0909a5cd675b0
1 # Maintainer:
3 pkgname=python-fastbencode
4 pkgver=0.2
5 pkgrel=2
6 pkgdesc='Implementation of bencode with optional fast C extensions'
7 arch=(x86_64)
8 url='https://github.com/breezy-team/fastbencode'
9 license=(GPL2)
10 depends=(python)
11 makedepends=(python-build python-installer cython python-setuptools python-wheel)
12 source=(https://pypi.io/packages/source/f/fastbencode/fastbencode-$pkgver.tar.gz)
13 sha256sums=('578eb9c4700d6705d71fbc8d7d57bca2cd987eca2cec1d9e77b9e0702db1e56f')
15 build() {
16   cd fastbencode-$pkgver
17   python -m build --wheel --no-isolation
20 check() {
21   cd fastbencode-$pkgver
22   python -m unittest discover -vs fastbencode/tests
25 package() {
26   cd fastbencode-$pkgver
27   python -m installer --destdir="$pkgdir" dist/*.whl