summaryrefslogtreecommitdiff
path: root/dev-python/cbor2
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-08-15 10:09:34 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-08-15 10:09:34 +0000
commit7c36d35694fd06c0e9f330becf10a77238ce45f9 (patch)
tree33b67f567a4e4a531958aa3b30f6b97ed5a343d7 /dev-python/cbor2
parentc8ea68d359366c9bb2f6f7f0f9d8b1d60eb45f99 (diff)
downloadbaldeagleos-repo-7c36d35694fd06c0e9f330becf10a77238ce45f9.tar.gz
baldeagleos-repo-7c36d35694fd06c0e9f330becf10a77238ce45f9.tar.xz
baldeagleos-repo-7c36d35694fd06c0e9f330becf10a77238ce45f9.zip
Adding metadata
Diffstat (limited to 'dev-python/cbor2')
-rw-r--r--dev-python/cbor2/Manifest1
-rw-r--r--dev-python/cbor2/cbor2-5.7.0.ebuild44
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-python/cbor2/Manifest b/dev-python/cbor2/Manifest
index 6c1df122dd7c..fef411ffccdb 100644
--- a/dev-python/cbor2/Manifest
+++ b/dev-python/cbor2/Manifest
@@ -1 +1,2 @@
DIST cbor2-5.6.5.tar.gz 100886 BLAKE2B cb929f7d5389e572008d0c494f3ca13c6c62638366286a64ef8432a683b58f8e92805cd1c68543ae14d9f8ce178542efae2884237d5d00ac12a86ffb598df5d6 SHA512 9c3fc14b579e8c687b3e955452fcf9056fcfcce8ebe72b89c7d6e74e0ba5a29e0a61a225bbb6040f73285dfcc9f3bb37758badbbf45bd723ead8ecdf7e64b685
+DIST cbor2-5.7.0.tar.gz 102374 BLAKE2B 8f7ce5220217d926a3a171baef8b4cbfb5b3d8609e01a5ad63c56898449b192be082c1c8f833a6cb8cf48de6ee8668d572297242d0ab6367e8943195b515d499 SHA512 9ec2c8c3de5220c9c6c6197d09c6c627dbd56fc3531ca09bab8f76bdcd00127dadb0e0b5faf61619859327440c7f356b68c1e9ff9ef43876e61627d1a44b8069
diff --git a/dev-python/cbor2/cbor2-5.7.0.ebuild b/dev-python/cbor2/cbor2-5.7.0.ebuild
new file mode 100644
index 000000000000..9357e0cd051b
--- /dev/null
+++ b/dev-python/cbor2/cbor2-5.7.0.ebuild
@@ -0,0 +1,44 @@
+# 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
+PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 )
+
+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_prepare_all() {
+ # remove pytest-cov dep
+ sed -i -e "s/--cov//" pyproject.toml || die
+ distutils-r1_python_prepare_all
+}
+
+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
+}