Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/brotlicffi/
Date: Sat, 06 Feb 2021 09:27:49
Message-Id: 1612603628.062e8ee25d36083c3a0543176e7cf37568cd19d1.mgorny@gentoo
1 commit: 062e8ee25d36083c3a0543176e7cf37568cd19d1
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 6 09:01:31 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 6 09:27:08 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=062e8ee2
7
8 dev-python/brotlicffi: Bump to 1.0.9.1
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/brotlicffi/Manifest | 1 +
13 dev-python/brotlicffi/brotlicffi-1.0.9.1.ebuild | 59 +++++++++++++++++++++++++
14 2 files changed, 60 insertions(+)
15
16 diff --git a/dev-python/brotlicffi/Manifest b/dev-python/brotlicffi/Manifest
17 index 66208cc556e..58c38dd88d8 100644
18 --- a/dev-python/brotlicffi/Manifest
19 +++ b/dev-python/brotlicffi/Manifest
20 @@ -1,2 +1,3 @@
21 DIST brotli-46c1a881b41bb638c76247558aa04b1591af3aa7.tar.gz 19840371 BLAKE2B b9a1c3c2e5b62bd63b392debe54bd1732ac1cb31f88500f0142108b453649d96901d9a03b6db98642cb9abaf9188c06d440f2b8bd3cf57fbbb52196a931f5079 SHA512 dc573c90491032a205f32f0ce9c93e95b06c70a3107caa9501e038a212226c37117d63709a29843367344bf7d18cf32d0c0578b11166387198e12b38b1522406
22 DIST brotlicffi-0.8.0.gh.tar.gz 21997 BLAKE2B 5e817e228ce01cd7a831c59cca5bab3e851d676f1daa5efab8f61a203c0854bcc92605c88896dff5f4ce27fc880718da5ddfcf02a3bddbbd7b2e18c33f1e77a4 SHA512 fd0c64b400d3b48e0e2d113b4d75e32a2b33fd99505c7661d6d51ba9aedf5cc1f58be09bc90a5f1f7e3424addef2b54cc085a41e6291c87d53dd7d4e8fc7eb4e
23 +DIST brotlicffi-1.0.9.1.gh.tar.gz 22589 BLAKE2B 14ebb3f6168d334abe3ba72bd88697ee98aba87ace6aaf634395ef50ecd9325723f0da0a9ce56a5e4dcfebfe3183a190e2ec183eff95492b25e3542161b32322 SHA512 669c73ed6dd18be6b916bb8cfb240657dcc10d67df5a32b3359f05cadf75aa654c27b53e8b964251f6d6cd74870e159efddf87ef0cfb59b7777eacd3cda66852
24
25 diff --git a/dev-python/brotlicffi/brotlicffi-1.0.9.1.ebuild b/dev-python/brotlicffi/brotlicffi-1.0.9.1.ebuild
26 new file mode 100644
27 index 00000000000..a0aa1519e85
28 --- /dev/null
29 +++ b/dev-python/brotlicffi/brotlicffi-1.0.9.1.ebuild
30 @@ -0,0 +1,59 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +PYTHON_COMPAT=( python3_{7..9} pypy3 )
37 +
38 +inherit distutils-r1
39 +
40 +# Commit of the Brotli library bundled within brotlipy.
41 +BROTLI_BUNDLED_COMMIT="46c1a881b41bb638c76247558aa04b1591af3aa7"
42 +
43 +DESCRIPTION="Python binding to the Brotli library"
44 +HOMEPAGE="
45 + https://github.com/python-hyper/brotlicffi/
46 + https://pypi.org/project/brotlicffi/"
47 +SRC_URI="
48 + https://github.com/python-hyper/${PN}/archive/v${PV}.tar.gz
49 + -> ${P}.gh.tar.gz
50 + test? (
51 + https://github.com/google/brotli/archive/${BROTLI_BUNDLED_COMMIT}.tar.gz
52 + -> brotli-${BROTLI_BUNDLED_COMMIT}.tar.gz
53 + )"
54 +
55 +LICENSE="MIT"
56 +SLOT="0"
57 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
58 +
59 +RDEPEND="
60 + app-arch/brotli:=
61 + virtual/python-cffi[${PYTHON_USEDEP}]"
62 +DEPEND="
63 + test? (
64 + dev-python/hypothesis[${PYTHON_USEDEP}]
65 + )
66 +"
67 +
68 +distutils_enable_tests pytest
69 +
70 +src_unpack() {
71 + default
72 + if use test; then
73 + mv "brotli-${BROTLI_BUNDLED_COMMIT}"/tests "${S}"/libbrotli/ || die
74 + fi
75 +}
76 +
77 +src_configure() {
78 + export USE_SHARED_BROTLI=1
79 +}
80 +
81 +python_test() {
82 + local deselect=(
83 + # incompatible with USE_SHARED_BROTLI=1
84 + test/test_compatibility.py::test_brotli_version
85 + )
86 +
87 + pytest -vv ${deselect[@]/#/--deselect } ||
88 + die "Tests failed with ${EPYTHON}"
89 +}