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/autobahn/
Date: Mon, 28 Mar 2022 10:14:42
Message-Id: 1648462467.b1c247d7b3ef742ad5132e35806224ad663760a8.mgorny@gentoo
1 commit: b1c247d7b3ef742ad5132e35806224ad663760a8
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 28 09:02:41 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 28 10:14:27 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1c247d7
7
8 dev-python/autobahn: Bump to 22.3.2
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/autobahn/Manifest | 1 +
13 dev-python/autobahn/autobahn-22.3.2.ebuild | 115 +++++++++++++++++++++++++++++
14 2 files changed, 116 insertions(+)
15
16 diff --git a/dev-python/autobahn/Manifest b/dev-python/autobahn/Manifest
17 index 6362bef44864..ef18ee5b39e8 100644
18 --- a/dev-python/autobahn/Manifest
19 +++ b/dev-python/autobahn/Manifest
20 @@ -1,2 +1,3 @@
21 DIST autobahn-22.2.2.tar.gz 375443 BLAKE2B a321cfeaa35e7da5aa58ade0da3bc5891baab1d4a915782e9d25038679261c19744d65baa4a981cb01025902dc8f4ffb93d8c0ad59b8db32119c0fb0eeb49d53 SHA512 95b0ee867a866b1cf67a55ffa9386addd3640b12a3e5a2673b4d496aa6d41ec49408e1f528bc21d1e390d5e3343dda0b1625d4ac0d9e9101db151c7c79623263
22 DIST autobahn-22.3.1.tar.gz 375616 BLAKE2B 2644ff3766b268df54cf955d657870530723342dc9b040b05806766e25dbf89b78b448d8b6a949cb8a8d1486a16f6901348dc127903c34502f8663997b539ac8 SHA512 5fbeec8808d90431e37ede1b3c147ffd8e92af99af3bc4f6fec3519cdbfe5962c3d770e9102b7f54bfbdd03f453b488c8ba8eb104c6a34458ca429fd1233e037
23 +DIST autobahn-22.3.2.tar.gz 376020 BLAKE2B 5d7b776c24541b08363942ed1868d5e7a2ccb4f99edc1ad722d3d68417852f324e79afa5ec8cc0251499ba27c078087ba40be744d657b562f5f1c431492705b6 SHA512 a33619bb7624f56bf571a4c61d11290316554c5c5a23724c6d5624f1e8e673dfc6a8e12ea3b17f809306a14f45e982b3425a23efb123003b575b248718c9a299
24
25 diff --git a/dev-python/autobahn/autobahn-22.3.2.ebuild b/dev-python/autobahn/autobahn-22.3.2.ebuild
26 new file mode 100644
27 index 000000000000..a15603075d58
28 --- /dev/null
29 +++ b/dev-python/autobahn/autobahn-22.3.2.ebuild
30 @@ -0,0 +1,115 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +DISTUTILS_USE_PEP517=setuptools
37 +PYTHON_COMPAT=( python3_{8..10} )
38 +
39 +inherit distutils-r1 optfeature
40 +
41 +MY_P=${PN}-$(ver_rs 3 -)
42 +
43 +DESCRIPTION="WebSocket and WAMP for Twisted and Asyncio"
44 +HOMEPAGE="https://pypi.org/project/autobahn/
45 + https://crossbar.io/autobahn/
46 + https://github.com/crossbario/autobahn-python"
47 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
48 +S="${WORKDIR}/${MY_P}"
49 +
50 +SLOT="0"
51 +LICENSE="MIT"
52 +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
53 +IUSE="test xbr"
54 +RESTRICT="!test? ( test )"
55 +
56 +# The order of deps is based on their appearance in setup.py
57 +# All extra deps should be included in test and in optfeature
58 +RDEPEND="
59 + >=dev-python/zope-interface-5.2.0[${PYTHON_USEDEP}]
60 + >=dev-python/twisted-20.3.0[${PYTHON_USEDEP}]
61 + >=dev-python/attrs-20.3.0[${PYTHON_USEDEP}]
62 + >=dev-python/txaio-21.2.1[${PYTHON_USEDEP}]
63 + dev-python/cryptography[${PYTHON_USEDEP}]
64 + >=dev-python/hyperlink-21.0.0[${PYTHON_USEDEP}]
65 + dev-python/setuptools[${PYTHON_USEDEP}]
66 +"
67 +BDEPEND="
68 + test? (
69 + >=dev-python/wsaccel-0.6.3[${PYTHON_USEDEP}]
70 + >=dev-python/snappy-0.6.0[${PYTHON_USEDEP}]
71 + >=dev-python/msgpack-1.0.2[${PYTHON_USEDEP}]
72 + >=dev-python/ujson-4.0.2[${PYTHON_USEDEP}]
73 + >=dev-python/cbor2-5.2.0[${PYTHON_USEDEP}]
74 + >=dev-python/py-ubjson-0.16.1[${PYTHON_USEDEP}]
75 + >=dev-python/flatbuffers-1.12[${PYTHON_USEDEP}]
76 + >=dev-python/pyopenssl-20.0.1[${PYTHON_USEDEP}]
77 + >=dev-python/service_identity-18.1.0[${PYTHON_USEDEP}]
78 + >=dev-python/pynacl-1.4.0[${PYTHON_USEDEP}]
79 + >=dev-python/pytrie-0.4[${PYTHON_USEDEP}]
80 + >=dev-python/pyqrcode-1.2.1[${PYTHON_USEDEP}]
81 + >=dev-python/cffi-1.14.5[${PYTHON_USEDEP}]
82 + >=dev-python/argon2-cffi-20.1.0[${PYTHON_USEDEP}]
83 + >=dev-python/passlib-1.7.4[${PYTHON_USEDEP}]
84 +
85 + dev-python/pytest[${PYTHON_USEDEP}]
86 + dev-python/pytest-asyncio[${PYTHON_USEDEP}]
87 + dev-python/pytest-aiohttp[${PYTHON_USEDEP}]
88 + )
89 +"
90 +
91 +python_prepare_all() {
92 + if use xbr ; then
93 + eerror "***************"
94 + eerror "Required xbr dependencies are incomplete in Gentoo."
95 + eerror "So this functionality will not yet work"
96 + eerror "Please file a bug if this feature is needed"
97 + eerror "***************"
98 + else
99 + # remove xbr components
100 + export AUTOBAHN_STRIP_XBR="True"
101 + fi
102 +
103 + # avoid useless rust dependency
104 + sed -i -e '/cryptography/s:>=3.4.6::' setup.py || die
105 +
106 + # remove twisted plugin cache regen in setup.py
107 + # to fix tinderbox sandbox issue
108 + sed -e '/import/s:reactor:__importmustfail__:' \
109 + -i setup.py || die
110 +
111 + distutils-r1_python_prepare_all
112 +}
113 +
114 +python_test() {
115 + einfo "Testing all, cryptosign using twisted"
116 + local -x USE_TWISTED=true
117 + cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
118 + "${EPYTHON}" -m twisted.trial autobahn || die "Tests failed with ${EPYTHON}"
119 + unset USE_TWISTED
120 +
121 + einfo "RE-testing cryptosign and component_aio using asyncio"
122 + local -x USE_ASYNCIO=true
123 + epytest autobahn/wamp/test/test_wamp_{cryptosign,component_aio}.py
124 + unset USE_ASYNCIO
125 +
126 + rm -f twisted/plugins/dropin.cache || die
127 +}
128 +
129 +pkg_postinst() {
130 + optfeature "C-based WebSocket acceleration" "dev-python/wsaccel"
131 + optfeature "non-standard WebSocket compression support" "dev-python/snappy"
132 + optfeature "accelerated WAMP serialization support" \
133 + "dev-python/msgpack dev-python/ujson dev-python/cbor2 dev-python/flatbuffers dev-python/py-ubjson"
134 + optfeature "TLS transport encryption" \
135 + "dev-python/pyopenssl dev-python/pynacl dev-python/pytrie dev-python/pyqrcode dev-python/service_identity"
136 + optfeature "WAMP-SCRAM authentication" \
137 + "dev-python/cffi dev-python/argon2-cffi dev-python/passlib"
138 + optfeature "native SIMD acceleration" "dev-python/cffi"
139 +
140 + python_foreach_impl twisted-regen-cache
141 +}
142 +
143 +pkg_postrm() {
144 + python_foreach_impl twisted-regen-cache
145 +}