commit: ac29e81772495207e56027392a66e3a233a999cd Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Wed Dec 31 07:19:54 2025 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Wed Dec 31 07:27:27 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac29e817
dev-python/cbor2: Bump to 5.8.0 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/cbor2/Manifest | 2 ++ dev-python/cbor2/cbor2-5.8.0.ebuild | 39 +++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/dev-python/cbor2/Manifest b/dev-python/cbor2/Manifest index 7532d354d94b..9aaaf671ba5a 100644 --- a/dev-python/cbor2/Manifest +++ b/dev-python/cbor2/Manifest @@ -1,2 +1,4 @@ DIST cbor2-5.7.1.tar.gz 102467 BLAKE2B 8025d34843c977eb282f47b3836844441c4d45fd3e01f0791241a2cf1f99fccde43c096edaf52fca31c18341b73591a6168a7012d06906f31b27f1c990697274 SHA512 0bdb36f505c61fa554c5f042ac82827fe286b66b46d7847ca5292942d5eda354c3216d6521cb5b1b2ffa19bc4798870a985aeb806cfe6e60f173a59def8f2bd2 DIST cbor2-5.7.1.tar.gz.provenance 9333 BLAKE2B 37eefd944d4d525e8d3a1be918855f535c3a328fd8da8f178e550b137bcf24fcd378904bd5cb69e47312c3acc2d9c010ebfbfdd5c1eb5dbb8724d40f18d832f7 SHA512 d8532140f1830204c9c2f823b2f0acf3140b736b946d1239551b7116de2f62de3eb4d2d39a327ee2fcc2afb2d75914d0b30f819cf8cfdcd795f5e8d4237145e9 +DIST cbor2-5.8.0.tar.gz 107825 BLAKE2B 619a8d01530f6b5d13f9dfef8ba0f75e0a1d771c9886c248b76a15e09092d6fe1cb48a488e4cf85dea8ca7e8be6642e45f454dfc12bfa07219aa4bbc28df9a9c SHA512 19a79554526db6926421ec6520c589fd51530057226ca9479662f2eb9c8af6ebda2bf52d3d28c4597d3985585b3798d54f2b783e5bc6622610f91eea91f28547 +DIST cbor2-5.8.0.tar.gz.provenance 9374 BLAKE2B c540105f160f1b3877338a35387e91c0a4f07f71513ae8a9088fb14f0eeadf3466b64f7e0d9f626b3e331cc7974a9013223c4ad439d936d805489216594e2d0d SHA512 2930cb9d68cd4e7baab9b6a156ac404bb870340895a0d41ee73371943e3fae868b8f6950a85346c80d3f02bd17faa840cb10021d99d2f42d96a6ca840597113d diff --git a/dev-python/cbor2/cbor2-5.8.0.ebuild b/dev-python/cbor2/cbor2-5.8.0.ebuild new file mode 100644 index 000000000000..82f43b89cf76 --- /dev/null +++ b/dev-python/cbor2/cbor2-5.8.0.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYPI_VERIFY_REPO=https://github.com/agronholm/cbor2 +PYTHON_COMPAT=( pypy3_11 python3_{11..14} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Pure Python CBOR (de)serializer with extensive tag support" +HOMEPAGE=" + https://github.com/agronholm/cbor2/ + https://pypi.org/project/cbor2/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="+native-extensions" + +BDEPEND=" + >=dev-python/setuptools-61[${PYTHON_USEDEP}] + >=dev-python/setuptools-scm-6.4[${PYTHON_USEDEP}] +" + +EPYTEST_PLUGINS=( hypothesis ) +distutils_enable_tests pytest + +python_compile() { + local -x CBOR2_BUILD_C_EXTENSION=1 + # pypy3 not supported upstream + if [[ ${EPYTHON} == pypy3* ]] || ! use native-extensions; then + CBOR2_BUILD_C_EXTENSION=0 + fi + distutils-r1_python_compile +}
