commit:     413ccec81c7f4b05bf5c848205b3b13f064e525d
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 14 14:57:05 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Sep 14 15:39:33 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=413ccec8

dev-python/brotlicffi: Bump to 1.1.0.0

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

 dev-python/brotlicffi/Manifest                  |  3 ++
 dev-python/brotlicffi/brotlicffi-1.1.0.0.ebuild | 66 +++++++++++++++++++++++++
 2 files changed, 69 insertions(+)

diff --git a/dev-python/brotlicffi/Manifest b/dev-python/brotlicffi/Manifest
index 09219d188fe0..069fea496cfe 100644
--- a/dev-python/brotlicffi/Manifest
+++ b/dev-python/brotlicffi/Manifest
@@ -1,2 +1,5 @@
+DIST alice29.txt 186314 BLAKE2B 
f60a7e91e95b65a94c2ca8be35f53e0978d39116ff4bc69ef630787e52f9ea4e8ee06bd1f96bc051c894ddda077b4a14c51ca4bceb31f8be6954f4bbb89f27aa
 SHA512 
16d436a3be97882a21230fadd51963d11bda69a9532c048e12f1f3c8579ff69bdd8221d70f77600b85ad3c0e69d9fef172755cabe5a1476dfade5a30c8b1b03f
 DIST brotli-46c1a881b41bb638c76247558aa04b1591af3aa7.tar.gz 19840371 BLAKE2B 
b9a1c3c2e5b62bd63b392debe54bd1732ac1cb31f88500f0142108b453649d96901d9a03b6db98642cb9abaf9188c06d440f2b8bd3cf57fbbb52196a931f5079
 SHA512 
dc573c90491032a205f32f0ce9c93e95b06c70a3107caa9501e038a212226c37117d63709a29843367344bf7d18cf32d0c0578b11166387198e12b38b1522406
+DIST brotli-ed738e842d2fbdf2d6459e39267a633c4a9b2f5d.tar.gz 512305 BLAKE2B 
b646e4565386870443d006a97a13b295c2c66de448e501f809700c303bb3daf5e4f84a2dacec16c43a534879243e4cda9292072630f13d5f7ca54f2c4372e560
 SHA512 
f493e7f15ca2804ae8715e48bdc954680f527533e684ec3762a7d49d05890915194289ed948c8cce95644274e1dcab952dcfbc84c0108aaf79f35f20270ffe6a
 DIST brotlicffi-1.0.9.2.gh.tar.gz 22714 BLAKE2B 
463cff7aed04718d1c77e6b3477dbbdb40cf61f0e045a7759bf1e8656e3b07e7b9f3ff5c5356069e752d750774a6ab203588a4094d27ad7ab9ae80f091c6ea3a
 SHA512 
3d200f606c9851f0049835b53dd1f117727786505b5887e246934f41a978d375e1fa5a078e0811f130c009931e41c51575bd9d55b602ee7b6daebe9759ed15d5
+DIST brotlicffi-1.1.0.0.gh.tar.gz 22736 BLAKE2B 
013eec22fcc83da838020c97c4610f80d011a47e6f2c6e35cc1fb062fc0990030349ec59597951003a15c5b4b373aeb91b3caec2a645bba2956e950727b7ae39
 SHA512 
5b53a2fb8a8a98720e1b9e52816954c2ac478dc31d174aca64b86b86aebb4ffa42e8811117a48ea6bde597846325326624f34178cb0bb1843670e8bdbc742c75

diff --git a/dev-python/brotlicffi/brotlicffi-1.1.0.0.ebuild 
b/dev-python/brotlicffi/brotlicffi-1.1.0.0.ebuild
new file mode 100644
index 000000000000..876a942da11d
--- /dev/null
+++ b/dev-python/brotlicffi/brotlicffi-1.1.0.0.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2023 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_{10..12} pypy3 )
+
+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/blob/ed738e842d2fbdf2d6459e39267a633c4a9b2f5d/tests/testdata/alice29.txt
+       )
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x64-solaris"
+
+RDEPEND="
+       app-arch/brotli:=
+       $(python_gen_cond_dep '
+               dev-python/cffi[${PYTHON_USEDEP}]
+       ' 'python*')
+"
+DEPEND="
+       ${RDEPEND}
+       test? (
+               dev-python/hypothesis[${PYTHON_USEDEP}]
+       )
+"
+
+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