backports/py3-cbor2: drop due to in community

This commit is contained in:
Antoine Martin 2024-06-02 18:27:52 -04:00
parent ecb91c7a17
commit aa5271111c
Signed by: forge
GPG key ID: D62A472A4AA7D541
2 changed files with 0 additions and 78 deletions

View file

@ -1,49 +0,0 @@
# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=py3-cbor2
pkgver=5.6.1
pkgrel=0
pkgdesc="encoding and decoding for CBOR (RFC 8949)"
url="https://github.com/agronholm/cbor2"
arch="all"
license="MIT"
makedepends="
py3-gpep517
py3-setuptools
py3-setuptools_scm
py3-wheel
python3-dev
"
checkdepends="
py3-hypothesis
py3-pytest
py3-pytest-cov
py3-tomli
"
subpackages="$pkgname-pyc"
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"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
9ddf2c3690780816ff50ff4ed371435ca45b597b706254c37c9f01d1f1a699892e2c945a72e69b5506a803c41692f399b58b4e32d9409a0197c677e537e656b2 py3-cbor2-5.6.1.tar.gz
ba8a19a73fe2dc747846b77fde6cd621ccb500a514ba61192dfa28c875720003666165ad12c767260b31148b0dd25454e36e4f43dd8bb1d11928944c6a5b61dd fix-32bit-tests.patch
"

View file

@ -1,29 +0,0 @@
Patch-Source: https://github.com/agronholm/cbor2/commit/75279162a019d20db3bff8d64d41c7e97b555b53
From 75279162a019d20db3bff8d64d41c7e97b555b53 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= <alex.gronholm@nextday.fi>
Date: Tue, 6 Feb 2024 15:43:23 +0200
Subject: [PATCH] Fixed test_oversized_read failing on 32-bit platforms
Fixes #215.
---
tests/test_decoder.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/test_decoder.py b/tests/test_decoder.py
index cd0b45a..d11be6e 100644
--- a/tests/test_decoder.py
+++ b/tests/test_decoder.py
@@ -939,11 +939,11 @@ def test_decimal_payload_unpacking(impl, data, expected):
"payload",
[
pytest.param(
- unhexlify("5b7fffffffffffff00"),
+ unhexlify("41"),
id="bytestring",
),
pytest.param(
- unhexlify("7b7fffffffffffff00"),
+ unhexlify("61"),
id="unicode",
),
],