ayaports/backports/py3-cbor2/APKBUILD

50 lines
1.2 KiB
Text
Raw Normal View History

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
2024-04-14 22:22:24 +00:00
pkgver=5.6.1
2023-11-24 18:14:12 +00:00
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"
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
"
subpackages="$pkgname-pyc"
2024-04-14 22:22:24 +00:00
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/c/cbor2/cbor2-$pkgver.tar.gz
fix-32bit-tests.patch
"
builddir="$srcdir/cbor2-$pkgver"
2023-01-11 00:40:45 +00:00
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="
2024-04-14 22:22:24 +00:00
9ddf2c3690780816ff50ff4ed371435ca45b597b706254c37c9f01d1f1a699892e2c945a72e69b5506a803c41692f399b58b4e32d9409a0197c677e537e656b2 py3-cbor2-5.6.1.tar.gz
ba8a19a73fe2dc747846b77fde6cd621ccb500a514ba61192dfa28c875720003666165ad12c767260b31148b0dd25454e36e4f43dd8bb1d11928944c6a5b61dd fix-32bit-tests.patch
2023-01-11 00:40:45 +00:00
"