1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Maintainer: Caleb Maclennan <caleb@alerque.com>
8 pkgdesc="Pure Python CBOR (de)serializer with extensive tag support"
10 url="https://github.com/agronholm/cbor2"
13 makedepends=(python-build python-installer python-setuptools-scm python-toml python-wheel)
14 checkdepends=(python-pytest)
15 source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
16 sha256sums=('b893500db0fe033e570c3adc956af6eefc57e280026bd2d86fd53da9f1e594d7')
17 b2sums=('df24c786f32819f9a93a2db28536b78349db6185108188d0a20e7298ff8c083d1feb59110865b4e21190e0363b113201ccddaa0d36b49bd7bbacf9d5ee7695f4')
26 export PYTHONPATH="build:${PYTHONPATH}"
27 pytest -v -c /dev/null tests
32 python -m installer -d "$pkgdir" dist/*.whl
33 install -vDm 644 README.rst -t "$pkgdir/usr/share/doc/$pkgname/"
34 install -vDm 644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname/"