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: Wed, 23 Feb 2022 21:30:23
Message-Id: 1645651805.cdcb428e338cb4b8e25caf157551af0802f2f4b8.mgorny@gentoo
1 commit: cdcb428e338cb4b8e25caf157551af0802f2f4b8
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 23 20:50:03 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 23 21:30:05 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cdcb428e
7
8 dev-python/autobahn: Bump to 22.2.1
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.1.ebuild | 115 +++++++++++++++++++++++++++++
14 2 files changed, 116 insertions(+)
15
16 diff --git a/dev-python/autobahn/Manifest b/dev-python/autobahn/Manifest
17 index 4117850ffa71..6346603232ed 100644
18 --- a/dev-python/autobahn/Manifest
19 +++ b/dev-python/autobahn/Manifest
20 @@ -1,2 +1,3 @@
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
25 diff --git a/dev-python/autobahn/autobahn-22.2.1.ebuild b/dev-python/autobahn/autobahn-22.2.1.ebuild
26 new file mode 100644
27 index 000000000000..fa10fad2258e
28 --- /dev/null
29 +++ b/dev-python/autobahn/autobahn-22.2.1.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 +PYTHON_COMPAT=( python3_{8..10} )
37 +DISTUTILS_USE_PEP517=setuptools
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 ~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 +}