commit: 778f8fd717a76888c756a7e1a0e288024d9877b8
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 6 04:38:33 2026 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Mar 6 04:52:42 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=778f8fd7
dev-python/brotlicffi: Bump to 1.2.0.1
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/brotlicffi/Manifest | 1 +
dev-python/brotlicffi/brotlicffi-1.2.0.1.ebuild | 67 +++++++++++++++++++++++++
2 files changed, 68 insertions(+)
diff --git a/dev-python/brotlicffi/Manifest b/dev-python/brotlicffi/Manifest
index 6350eefe0a1d..a614f2969610 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.2.0.0.gh.tar.gz 24494 BLAKE2B
0e7c5ae4434b6ba971538c0e709b96c711728a4dce3c98462ced2275d8f4a8f20b4ecf104b194b41bd95f26b4d2f039143940ce21e421b03bb690fc57e423d21
SHA512
08a02102a0f6cfa480c5897157203084fcd2bf0ad1b33e136aae78184848e25a70b48f555199dab151944139f8ddf72f459936423bd2be69f4f54d2719a934d7
+DIST brotlicffi-1.2.0.1.gh.tar.gz 25990 BLAKE2B
ee17a59c4fb755f177234e10f2aeb5144da019ce13ac9f43f5501aa1afc703534e5070b4bd3df76ebc59987e0ec79186f6eba916cddac90546fce076787df101
SHA512
f01f6b510865f8f94c2e0b4b5e52463e6988032d597dbc315fbd68556ab7d4618ec6e0a923c1f0535e6da1e2f51965d9b8705f0d212d62f353f9ffcb6f08629e
diff --git a/dev-python/brotlicffi/brotlicffi-1.2.0.1.ebuild
b/dev-python/brotlicffi/brotlicffi-1.2.0.1.ebuild
new file mode 100644
index 000000000000..432ca76af935
--- /dev/null
+++ b/dev-python/brotlicffi/brotlicffi-1.2.0.1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2026 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} python3_14t 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 ~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
+}