commit:     6462481bb03cf87f2134107edc7e8dd2c77e8bd4
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Nov  3 06:18:00 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Nov  3 07:06:18 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6462481b

dev-python/cbor2: Bump to 5.5.1

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/cbor2/Manifest           |  1 +
 dev-python/cbor2/cbor2-5.5.1.ebuild | 46 +++++++++++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+)

diff --git a/dev-python/cbor2/Manifest b/dev-python/cbor2/Manifest
index 49122fba3815..b4074e6edc1e 100644
--- a/dev-python/cbor2/Manifest
+++ b/dev-python/cbor2/Manifest
@@ -1,2 +1,3 @@
 DIST cbor2-5.4.6.tar.gz 86909 BLAKE2B 
df24c786f32819f9a93a2db28536b78349db6185108188d0a20e7298ff8c083d1feb59110865b4e21190e0363b113201ccddaa0d36b49bd7bbacf9d5ee7695f4
 SHA512 
44fb3e2e2249c79b1454487670d53eb672ffae4c22374d2a2bb9e314ac15470e4e7913e4eb1981a8bd4d722e6827328dde7e57c5f0556843e951c4723ae5bd8e
 DIST cbor2-5.5.0.tar.gz 94286 BLAKE2B 
01c3659c161d47b3e0fa5c9e8833989e448b60d40f408f8c9ebde0a4e3d388dd047aea1666a93f3bb4be1e49695a4089e869d658b594456839c71e2bfe17cb29
 SHA512 
64b9ef0e358ac02113f85a2e633ed52900c4d5d6c89f889d9322f181e29fbdf9462663b5eaec7a255d5e6d47c82c4902cb7ff56999251c5ec070c7b610e615b3
+DIST cbor2-5.5.1.tar.gz 94221 BLAKE2B 
651d229c9a4e5fda2ae61302f8bd72a165f15e008333525a301f2fc94dc81259698f4ae9b8c1f3a0b5fadffadd4d55f2ba4bf1445938a10342997bca64ceba31
 SHA512 
7878b997ae5bdf44cb04b7cef8445a94f11c1722819ea85073bd56f99976cf2c1c1180e72d9ae9cd7dd7d06a6aa55dc1cb3f919a869098a9feede210f8355fb4

diff --git a/dev-python/cbor2/cbor2-5.5.1.ebuild 
b/dev-python/cbor2/cbor2-5.5.1.ebuild
new file mode 100644
index 000000000000..891987b304a0
--- /dev/null
+++ b/dev-python/cbor2/cbor2-5.5.1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( pypy3 python3_{10..12} )
+
+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="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+IUSE="+native-extensions"
+
+BDEPEND="
+       >=dev-python/setuptools-61[${PYTHON_USEDEP}]
+       >=dev-python/setuptools-scm-6.4[${PYTHON_USEDEP}]
+       test? (
+               dev-python/hypothesis[${PYTHON_USEDEP}]
+       )
+"
+
+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
+}

Reply via email to