commit:     ad969953957a018875fe2b8ed4e003c3533225cb
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 11 06:10:29 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Feb 11 07:17:51 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad969953

dev-python/flatbuffers: Bump to 25.2.10

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

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

diff --git a/dev-python/flatbuffers/Manifest b/dev-python/flatbuffers/Manifest
index 65bbd94292f9..31b9338fc945 100644
--- a/dev-python/flatbuffers/Manifest
+++ b/dev-python/flatbuffers/Manifest
@@ -1 +1,2 @@
 DIST flatbuffers-25.1.24.gh.tar.gz 2430616 BLAKE2B 
36e74e8ed537e363edc74cdf7b58a9ae39f0f2d587ee2ac14f4bf14b22bb77b8f63b1c682d44c20be895cbf399f41fb194796c3598d0550c7bfe0f4b9ff90c43
 SHA512 
48694fa20e41ffefd2ee264f570e96516853da0bce66c3e29b40e66baa62fdc4e38642de395307e4503743e7e2034654211d3866406be2d44dc582b61dfc25f7
+DIST flatbuffers-25.2.10.gh.tar.gz 2299918 BLAKE2B 
f12b32fca1a15349aaba142907d2d66caa55bb73862b969b226d0356f7f68fbba74c9c3f643a944813c370cacf81735b6c80d054a70b8b442519f9c485bbd10d
 SHA512 
7e6ae36b37c9fd322456312504156c8241852e07a2a23de6805eb2328b61b9f42b839d04b839f9d97623195721308437a1163a25071ca2af0d00a6417da74822

diff --git a/dev-python/flatbuffers/flatbuffers-25.2.10.ebuild 
b/dev-python/flatbuffers/flatbuffers-25.2.10.ebuild
new file mode 100644
index 000000000000..32ce725a5a38
--- /dev/null
+++ b/dev-python/flatbuffers/flatbuffers-25.2.10.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..13} )
+
+inherit distutils-r1
+
+DESCRIPTION="RFC 7049 - Concise Binary Object Representation"
+HOMEPAGE="
+       https://github.com/google/flatbuffers/
+       https://pypi.org/project/flatbuffers/
+"
+SRC_URI="
+       https://github.com/google/${PN}/archive/v${PV}.tar.gz
+               -> ${P}.gh.tar.gz
+"
+S=${WORKDIR}/${P}/python
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~sparc ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+       test? (
+               dev-python/numpy[${PYTHON_USEDEP}]
+       )
+"
+
+src_prepare() {
+       cd "${WORKDIR}/${P}" || die
+       eapply "${FILESDIR}/${PN}-24.3.25-numpy-2.patch"
+       cd "${S}" || die
+       distutils-r1_src_prepare
+}
+
+python_test() {
+       cd "${WORKDIR}/${P}/tests" || die
+       # zeroes means without benchmarks
+       "${EPYTHON}" py_test.py 0 0 0 0 false || die
+       "${EPYTHON}" py_flexbuffers_test.py -v || die
+}

Reply via email to