summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-04-03 04:54:17 +0200
committerMichał Górny <mgorny@gentoo.org>2023-04-03 04:54:43 +0200
commitdcff9c15ad81ab60ebbffc3d7514e75390f80cc3 (patch)
tree70aa98c13a9cf6701c037682efca2f4d7a8492e8 /dev-python/websockets
parentdev-python/blinker: Add GH remote-id (diff)
downloadgentoo-dcff9c15ad81ab60ebbffc3d7514e75390f80cc3.tar.gz
gentoo-dcff9c15ad81ab60ebbffc3d7514e75390f80cc3.tar.bz2
gentoo-dcff9c15ad81ab60ebbffc3d7514e75390f80cc3.zip
dev-python/websockets: Bump to 11.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/websockets')
-rw-r--r--dev-python/websockets/Manifest1
-rw-r--r--dev-python/websockets/metadata.xml3
-rw-r--r--dev-python/websockets/websockets-11.0.ebuild41
3 files changed, 45 insertions, 0 deletions
diff --git a/dev-python/websockets/Manifest b/dev-python/websockets/Manifest
index 84510f4c51eb..41751566fab8 100644
--- a/dev-python/websockets/Manifest
+++ b/dev-python/websockets/Manifest
@@ -1 +1,2 @@
DIST websockets-10.4.gh.tar.gz 309611 BLAKE2B f3a739368ff9d78fef79324af59d1e77b3fb654b8b1a847373a29f19b11ae9266b9a938d235ee27d12b59d9b4cf29825fc7298ff2f35e5b260df2c7a41a1bd78 SHA512 087b1920ff26e21b8d3b80b53249d44b841fc45a4992df1ad725112404f724a41aaa2d759a2bd521dfe337459f8bf0d2ae048c423489f527c68f6825f928b582
+DIST websockets-11.0.gh.tar.gz 347307 BLAKE2B b40b8e88375a1e5e0f6ae1c73169703d206800dcec15d858a0360374701b681ec17c457b014a29dc34962ca1f62261a8b8298e34092429864d790dd4a060e8d8 SHA512 367347464d5d721ad65055743df92311e7d98d0391ff437ab8c3224f1c1e4193b5abbdbf1498cd040d9b30251e6bc051e9c1ec54122b87e4c937026e0f6f3b8e
diff --git a/dev-python/websockets/metadata.xml b/dev-python/websockets/metadata.xml
index b162fa66f853..65f11910b1a7 100644
--- a/dev-python/websockets/metadata.xml
+++ b/dev-python/websockets/metadata.xml
@@ -13,4 +13,7 @@
<remote-id type="github">aaugustin/websockets</remote-id>
<remote-id type="pypi">websockets</remote-id>
</upstream>
+ <use>
+ <flag name="native-extensions">Compiles native C extensions</flag>
+ </use>
</pkgmetadata>
diff --git a/dev-python/websockets/websockets-11.0.ebuild b/dev-python/websockets/websockets-11.0.ebuild
new file mode 100644
index 000000000000..b9486a23c5db
--- /dev/null
+++ b/dev-python/websockets/websockets-11.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( pypy3 python3_{9..11} )
+
+inherit distutils-r1
+
+DESCRIPTION="Library for building WebSocket servers and clients in Python"
+HOMEPAGE="
+ https://websockets.readthedocs.io/
+ https://github.com/aaugustin/websockets/
+ https://pypi.org/project/websockets/
+"
+# tests are missing pypi sdist, as of 11.0
+SRC_URI="
+ https://github.com/aaugustin/websockets/archive/${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+IUSE="+native-extensions"
+
+distutils_enable_tests pytest
+
+src_configure() {
+ export BUILD_EXTENSION=$(usex native-extensions)
+}
+
+python_test() {
+ local EPYTEST_DESELECT=(
+ # very fragile to speed
+ tests/legacy/test_protocol.py::ServerTests::test_local_close_receive_close_frame_timeout
+ )
+
+ epytest tests
+}