commit:     983aa8a51f0b57af13b315c496ec87ee9d31c348
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 22 06:49:06 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Nov 22 06:58:35 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=983aa8a5

dev-python/brotlicffi: Bump to 1.2.0.0

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

 dev-python/brotlicffi/Manifest                  |  1 +
 dev-python/brotlicffi/brotlicffi-1.2.0.0.ebuild | 67 +++++++++++++++++++++++++
 2 files changed, 68 insertions(+)

diff --git a/dev-python/brotlicffi/Manifest b/dev-python/brotlicffi/Manifest
index 8125c9ecdcb3..68fd2098c1d2 100644
--- a/dev-python/brotlicffi/Manifest
+++ b/dev-python/brotlicffi/Manifest
@@ -1,3 +1,4 @@
 DIST alice29.txt 152089 BLAKE2B 
ea900856d3ae0ed2fea1923e557824bd09583f7c1be25aa778a43812d945318e1d911e682e318861979b5a479765b34e15a926d257f883ff2fb0df418ebf9966
 SHA512 
d93d674d66b227d7b3f4e1b7c35b102c40800e728bff68c7821109e7db7adf2f0b76a67bc9bd53b0202ac8daa0b22145f004dbdc6b59a48a6c8c72061bf1989f
 DIST brotli-ed738e842d2fbdf2d6459e39267a633c4a9b2f5d.tar.gz 512305 BLAKE2B 
b646e4565386870443d006a97a13b295c2c66de448e501f809700c303bb3daf5e4f84a2dacec16c43a534879243e4cda9292072630f13d5f7ca54f2c4372e560
 SHA512 
f493e7f15ca2804ae8715e48bdc954680f527533e684ec3762a7d49d05890915194289ed948c8cce95644274e1dcab952dcfbc84c0108aaf79f35f20270ffe6a
 DIST brotlicffi-1.1.0.0.gh.tar.gz 22736 BLAKE2B 
013eec22fcc83da838020c97c4610f80d011a47e6f2c6e35cc1fb062fc0990030349ec59597951003a15c5b4b373aeb91b3caec2a645bba2956e950727b7ae39
 SHA512 
5b53a2fb8a8a98720e1b9e52816954c2ac478dc31d174aca64b86b86aebb4ffa42e8811117a48ea6bde597846325326624f34178cb0bb1843670e8bdbc742c75
+DIST brotlicffi-1.2.0.0.gh.tar.gz 24494 BLAKE2B 
0e7c5ae4434b6ba971538c0e709b96c711728a4dce3c98462ced2275d8f4a8f20b4ecf104b194b41bd95f26b4d2f039143940ce21e421b03bb690fc57e423d21
 SHA512 
08a02102a0f6cfa480c5897157203084fcd2bf0ad1b33e136aae78184848e25a70b48f555199dab151944139f8ddf72f459936423bd2be69f4f54d2719a934d7

diff --git a/dev-python/brotlicffi/brotlicffi-1.2.0.0.ebuild 
b/dev-python/brotlicffi/brotlicffi-1.2.0.0.ebuild
new file mode 100644
index 000000000000..037331e2eabb
--- /dev/null
+++ b/dev-python/brotlicffi/brotlicffi-1.2.0.0.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# please keep this ebuild at EAPI 8 -- sys-apps/portage dep
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{11..14} pypy3_11 )
+
+inherit distutils-r1
+
+# Commit of the Brotli library bundled within brotlipy.
+BROTLI_BUNDLED_COMMIT="ed738e842d2fbdf2d6459e39267a633c4a9b2f5d"
+
+DESCRIPTION="Python binding to the Brotli library"
+HOMEPAGE="
+       https://github.com/python-hyper/brotlicffi/
+       https://pypi.org/project/brotlicffi/
+"
+SRC_URI="
+       https://github.com/python-hyper/${PN}/archive/v${PV}.tar.gz
+               -> ${P}.gh.tar.gz
+       test? (
+               
https://github.com/google/brotli/archive/${BROTLI_BUNDLED_COMMIT}.tar.gz
+                       -> brotli-${BROTLI_BUNDLED_COMMIT}.tar.gz
+               
https://github.com/google/brotli/raw/${BROTLI_BUNDLED_COMMIT}/tests/testdata/alice29.txt
+       )
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x64-solaris"
+
+DEPEND="
+       app-arch/brotli:=
+"
+BDEPEND="
+       $(python_gen_cond_dep '
+               >=dev-python/cffi-1.17.0[${PYTHON_USEDEP}]
+       ' 'python*')
+"
+RDEPEND="
+       ${DEPEND}
+       ${BDEPEND}
+"
+
+EPYTEST_PLUGINS=( hypothesis )
+distutils_enable_tests pytest
+
+EPYTEST_DESELECT=(
+       # incompatible with USE_SHARED_BROTLI=1
+       test/test_compatibility.py::test_brotli_version
+)
+
+src_unpack() {
+       default
+       if use test; then
+               mv "brotli-${BROTLI_BUNDLED_COMMIT}"/tests "${S}"/libbrotli/ || 
die
+               # sigh, google and their stupid .gitattributes
+               cp "${DISTDIR}"/alice29.txt "${S}"/libbrotli/tests/testdata/ || 
die
+       fi
+}
+
+src_configure() {
+       export USE_SHARED_BROTLI=1
+}

Reply via email to