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