42 lines
929 B
Text
42 lines
929 B
Text
|
# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
|
||
|
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
|
||
|
pkgname=py3-cbor2
|
||
|
pkgver=5.4.6
|
||
|
pkgrel=0
|
||
|
pkgdesc="encoding and decoding for CBOR (RFC 8949)"
|
||
|
url="https://github.com/agronholm/cbor2"
|
||
|
arch="all"
|
||
|
license="MIT"
|
||
|
depends="
|
||
|
python3
|
||
|
"
|
||
|
makedepends="
|
||
|
py3-setuptools
|
||
|
py3-setuptools_scm
|
||
|
py3-wheel
|
||
|
python3-dev
|
||
|
"
|
||
|
checkdepends="
|
||
|
py3-pytest
|
||
|
py3-pytest-cov
|
||
|
py3-tomli
|
||
|
"
|
||
|
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/c/cbor2/cbor2-$pkgver.tar.gz"
|
||
|
builddir="$srcdir/"cbor2-$pkgver
|
||
|
|
||
|
build() {
|
||
|
python3 setup.py build
|
||
|
}
|
||
|
|
||
|
check() {
|
||
|
PYTHONPATH="$(echo "$PWD"/build/lib.linux*)" pytest
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
python3 setup.py install --skip-build --root="$pkgdir"
|
||
|
}
|
||
|
|
||
|
sha512sums="
|
||
|
44fb3e2e2249c79b1454487670d53eb672ffae4c22374d2a2bb9e314ac15470e4e7913e4eb1981a8bd4d722e6827328dde7e57c5f0556843e951c4723ae5bd8e py3-cbor2-5.4.6.tar.gz
|
||
|
"
|