2023-01-11 00:40:45 +00:00
|
|
|
# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
|
|
|
|
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
|
|
|
|
pkgname=py3-cbor2
|
2023-11-24 18:14:12 +00:00
|
|
|
pkgver=5.5.0
|
|
|
|
pkgrel=0
|
2023-01-11 00:40:45 +00:00
|
|
|
pkgdesc="encoding and decoding for CBOR (RFC 8949)"
|
|
|
|
url="https://github.com/agronholm/cbor2"
|
|
|
|
arch="all"
|
|
|
|
license="MIT"
|
|
|
|
depends="
|
|
|
|
python3
|
|
|
|
"
|
|
|
|
makedepends="
|
2023-11-24 18:14:12 +00:00
|
|
|
py3-gpep517
|
2023-01-11 00:40:45 +00:00
|
|
|
py3-setuptools
|
|
|
|
py3-setuptools_scm
|
|
|
|
py3-wheel
|
|
|
|
python3-dev
|
|
|
|
"
|
|
|
|
checkdepends="
|
2023-11-24 18:14:12 +00:00
|
|
|
py3-hypothesis
|
2023-01-11 00:40:45 +00:00
|
|
|
py3-pytest
|
|
|
|
py3-pytest-cov
|
|
|
|
py3-tomli
|
|
|
|
"
|
2023-05-05 05:16:10 +00:00
|
|
|
subpackages="$pkgname-pyc"
|
2023-01-11 00:40:45 +00:00
|
|
|
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/c/cbor2/cbor2-$pkgver.tar.gz"
|
|
|
|
builddir="$srcdir/"cbor2-$pkgver
|
|
|
|
|
|
|
|
build() {
|
2023-11-24 18:14:12 +00:00
|
|
|
gpep517 build-wheel \
|
|
|
|
--wheel-dir .dist \
|
|
|
|
--output-fd 3 3>&1 >&2
|
2023-01-11 00:40:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2023-11-24 18:14:12 +00:00
|
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
|
|
.testenv/bin/python3 -m pytest
|
2023-01-11 00:40:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2023-11-24 18:14:12 +00:00
|
|
|
python3 -m installer -d "$pkgdir" \
|
|
|
|
.dist/*.whl
|
2023-01-11 00:40:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2023-11-24 18:14:12 +00:00
|
|
|
64b9ef0e358ac02113f85a2e633ed52900c4d5d6c89f889d9322f181e29fbdf9462663b5eaec7a255d5e6d47c82c4902cb7ff56999251c5ec070c7b610e615b3 py3-cbor2-5.5.0.tar.gz
|
2023-01-11 00:40:45 +00:00
|
|
|
"
|