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: Fri, 03 Jun 2022 05:37:48
Message-Id: 1654234656.609ed33269bc0521adc5e09878eed58afc83318a.mgorny@gentoo
1 commit: 609ed33269bc0521adc5e09878eed58afc83318a
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 3 04:47:13 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 3 05:37:36 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=609ed332
7
8 dev-python/autobahn: Bump to 22.5.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.5.1.ebuild | 116 +++++++++++++++++++++++++++++
14 2 files changed, 117 insertions(+)
15
16 diff --git a/dev-python/autobahn/Manifest b/dev-python/autobahn/Manifest
17 index a1a85babf638..ae02bb72e727 100644
18 --- a/dev-python/autobahn/Manifest
19 +++ b/dev-python/autobahn/Manifest
20 @@ -1,2 +1,3 @@
21 DIST autobahn-22.3.2.tar.gz 376020 BLAKE2B 5d7b776c24541b08363942ed1868d5e7a2ccb4f99edc1ad722d3d68417852f324e79afa5ec8cc0251499ba27c078087ba40be744d657b562f5f1c431492705b6 SHA512 a33619bb7624f56bf571a4c61d11290316554c5c5a23724c6d5624f1e8e673dfc6a8e12ea3b17f809306a14f45e982b3425a23efb123003b575b248718c9a299
22 DIST autobahn-22.4.2.tar.gz 396061 BLAKE2B da51f53f138ff6935f55561305c9cb0b29dcfef27fa63f32beac867f8aec2149a681f2dcbea6f30423e5571bf0fbf18fe13604c11d1accf78629c714bcbbc754 SHA512 9d803a699dd370b25e6c1601e635fe60a8e24f33245008bfe271d34ba47e70b7fab8c555a2c68a5255515a51e56476a63bfb0c9d98ed3687b71317ab46efc5ec
23 +DIST autobahn-22.5.1.tar.gz 435571 BLAKE2B 5e596102b639228d95cea027a0e7187adc4f0910afbd3c5753c0408e070a37b911362eba64c79ce6201000e59381de0941619bef152ca2d784a2c19f1a67a36f SHA512 c27c0f1a782c53df7c152c8043a8e5502f19944e9d5a6ab4a95d02016dfbba70a770f1f4969b75995beed852191bde288d80d1336d56fba1eea190d6590ca642
24
25 diff --git a/dev-python/autobahn/autobahn-22.5.1.ebuild b/dev-python/autobahn/autobahn-22.5.1.ebuild
26 new file mode 100644
27 index 000000000000..f53a820194fa
28 --- /dev/null
29 +++ b/dev-python/autobahn/autobahn-22.5.1.ebuild
30 @@ -0,0 +1,116 @@
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="
45 + https://crossbar.io/autobahn/
46 + https://github.com/crossbario/autobahn-python/
47 + https://pypi.org/project/autobahn/
48 +"
49 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
50 +S="${WORKDIR}/${MY_P}"
51 +
52 +SLOT="0"
53 +LICENSE="MIT"
54 +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
55 +IUSE="test xbr"
56 +RESTRICT="!test? ( test )"
57 +
58 +# The order of deps is based on their appearance in setup.py
59 +# All extra deps should be included in test and in optfeature
60 +RDEPEND="
61 + >=dev-python/zope-interface-5.2.0[${PYTHON_USEDEP}]
62 + >=dev-python/twisted-20.3.0[${PYTHON_USEDEP}]
63 + >=dev-python/attrs-20.3.0[${PYTHON_USEDEP}]
64 + >=dev-python/txaio-21.2.1[${PYTHON_USEDEP}]
65 + dev-python/cryptography[${PYTHON_USEDEP}]
66 + >=dev-python/hyperlink-21.0.0[${PYTHON_USEDEP}]
67 + dev-python/setuptools[${PYTHON_USEDEP}]
68 +"
69 +BDEPEND="
70 + test? (
71 + >=dev-python/wsaccel-0.6.3[${PYTHON_USEDEP}]
72 + >=dev-python/snappy-0.6.0[${PYTHON_USEDEP}]
73 + >=dev-python/msgpack-1.0.2[${PYTHON_USEDEP}]
74 + >=dev-python/ujson-4.0.2[${PYTHON_USEDEP}]
75 + >=dev-python/cbor2-5.2.0[${PYTHON_USEDEP}]
76 + >=dev-python/py-ubjson-0.16.1[${PYTHON_USEDEP}]
77 + >=dev-python/flatbuffers-1.12[${PYTHON_USEDEP}]
78 + >=dev-python/pyopenssl-20.0.1[${PYTHON_USEDEP}]
79 + >=dev-python/service_identity-18.1.0[${PYTHON_USEDEP}]
80 + >=dev-python/pynacl-1.4.0[${PYTHON_USEDEP}]
81 + >=dev-python/pytrie-0.4[${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/qrcode 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 +}