commit:     ad0e39b851547de4d1bd14e6694b8a7660379144
Author:     wangjiezhe <wangjiezhe <AT> gmail <DOT> com>
AuthorDate: Fri Jan 19 10:21:19 2024 +0000
Commit:     Jason Zaman <perfinion <AT> gentoo <DOT> org>
CommitDate: Sat Feb  3 19:32:44 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad0e39b8

Revert "dev-python/flatbuffers: Remove old"

This reverts commit 2bc4030874064a68c9fd9646ed2cee14e6e51b01.

Also update PYTHON_COMPAT

Co-authored-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
Signed-off-by: Jiezhe Wang <wangjiezhe <AT> gmail.com>
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org>

 dev-python/flatbuffers/Manifest                   |  1 +
 dev-python/flatbuffers/flatbuffers-23.1.21.ebuild | 39 +++++++++++++++++++++++
 2 files changed, 40 insertions(+)

diff --git a/dev-python/flatbuffers/Manifest b/dev-python/flatbuffers/Manifest
index ff76ed194531..16918eaf4e7a 100644
--- a/dev-python/flatbuffers/Manifest
+++ b/dev-python/flatbuffers/Manifest
@@ -1 +1,2 @@
+DIST flatbuffers-23.1.21.gh.tar.gz 2181861 BLAKE2B 
6368358c21e677feb466245a746b86cebb6d6a4058bb6d593de81bf3c32ddfb9fd475e4bb225d4529ea106253456a5ed1ee6d024b1e2521e02efef171750f428
 SHA512 
fa62188f773ad044644a58caf1e25bef417dfdea47c9da8a2ea7f997154b4f3976019e32e73cc533696a3d4e45ec4a8402b6df140878dfa2ff078740d61b4b0f
 DIST flatbuffers-23.5.26.gh.tar.gz 2257271 BLAKE2B 
147425e7c018072f4ae4cdb3e034a4f434362d88d5e27b09375965993c279acfbed36064014c8f4fbe3fb81175ac0aa9b07629675e2c7ad33d59a9c85f2c3bb8
 SHA512 
cd0a5efad8016e1217d01a181d6b02e546f5693c6412361bfeaee820d5dfe5e2a424cee1963270e851c1a4f936ae8a0032a51c5bb16ee19313e0ecc77dc4ba31

diff --git a/dev-python/flatbuffers/flatbuffers-23.1.21.ebuild 
b/dev-python/flatbuffers/flatbuffers-23.1.21.ebuild
new file mode 100644
index 000000000000..f6733524881c
--- /dev/null
+++ b/dev-python/flatbuffers/flatbuffers-23.1.21.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..11} )
+
+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 x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+       test? (
+               dev-python/numpy[${PYTHON_USEDEP}]
+       )
+"
+
+python_test() {
+       cd "${WORKDIR}/${P}/tests" || die
+       # zeroes means without benchmarks
+       "${EPYTHON}" py_test.py 0 0 0 false || die "Tests failed with 
${EPYTHON}"
+       "${EPYTHON}" py_flexbuffers_test.py -v || die "Tests failed with 
${EPYTHON}"
+}

Reply via email to