upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / python-cbor2 / trunk / PKGBUILD
blob48f8ba82437090a730ea4dd7eb633c339047a8db
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Maintainer: Caleb Maclennan <caleb@alerque.com>
4 _name=cbor2
5 pkgname=python-cbor2
6 pkgver=5.4.6
7 pkgrel=2
8 pkgdesc="Pure Python CBOR (de)serializer with extensive tag support"
9 arch=(x86_64)
10 url="https://github.com/agronholm/cbor2"
11 license=(MIT)
12 depends=(python)
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')
19 build() {
20   cd $_name-$pkgver
21   python -m build -wn
24 check() {
25   cd $_name-$pkgver
26   export PYTHONPATH="build:${PYTHONPATH}"
27   pytest -v -c /dev/null tests
30 package() {
31   cd $_name-$pkgver
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/"