From 155cc74ccaea367efa88c8acfadcf25cb7dfe89c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 3 Apr 2023 05:19:36 +0100 Subject: gentoo auto-resync : 03:04:2023 - 05:19:36 --- dev-python/websockets/Manifest | 4 ++- dev-python/websockets/metadata.xml | 3 ++ dev-python/websockets/websockets-11.0.ebuild | 41 ++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 dev-python/websockets/websockets-11.0.ebuild (limited to 'dev-python/websockets') diff --git a/dev-python/websockets/Manifest b/dev-python/websockets/Manifest index 10bffe0e3035..a9a52dc02733 100644 --- a/dev-python/websockets/Manifest +++ b/dev-python/websockets/Manifest @@ -1,3 +1,5 @@ DIST websockets-10.4.gh.tar.gz 309611 BLAKE2B f3a739368ff9d78fef79324af59d1e77b3fb654b8b1a847373a29f19b11ae9266b9a938d235ee27d12b59d9b4cf29825fc7298ff2f35e5b260df2c7a41a1bd78 SHA512 087b1920ff26e21b8d3b80b53249d44b841fc45a4992df1ad725112404f724a41aaa2d759a2bd521dfe337459f8bf0d2ae048c423489f527c68f6825f928b582 +DIST websockets-11.0.gh.tar.gz 347307 BLAKE2B b40b8e88375a1e5e0f6ae1c73169703d206800dcec15d858a0360374701b681ec17c457b014a29dc34962ca1f62261a8b8298e34092429864d790dd4a060e8d8 SHA512 367347464d5d721ad65055743df92311e7d98d0391ff437ab8c3224f1c1e4193b5abbdbf1498cd040d9b30251e6bc051e9c1ec54122b87e4c937026e0f6f3b8e EBUILD websockets-10.4.ebuild 833 BLAKE2B 909c86ffb1ffc7c4791a88be6b429e8900f9cba4eb4398c94538d28a8a8e50f9461d534f75c1f84b2e82fa68e031c0a4993b8df0f743e003fb80ebe36681fdf9 SHA512 e18093e4d4d726a49040e58e9f218fb3e959b049682c5d6d10ef4f8c0e99e632fe4a2d26728e3109eebbecc0bc701e89d74f1f25ce28db3e5522d8433e2e507f -MISC metadata.xml 488 BLAKE2B 06ed81aa4ffa49d1951a8ef639752bc701d798fa531737d4cb367ca198e65178f430d6b1e7f3b24ffcc332343dd58a0cc8ff5f2632a225e6c0f36ee50148aebd SHA512 8335bde47d396c018b32db406e18636edd7f3fe5704c901888d56690ec726aeb7d6f9e42fb7dbb1869c78b494c9cbc17ded3ca78b7576d6fdc0a8097bf996f60 +EBUILD websockets-11.0.ebuild 981 BLAKE2B 840a56ea10f4a30d23d9bb5f656d3b6fdaf63014811516fae0129751ffc01b1aaab0cc019f71443052ec4e125d3f47c662f130d6429c7aabfc5d2eb0c72b59ff SHA512 32233030eadd7e3557490b16c394400848ebb746c08b8aad8d07a98caca03ff67531e7ee45fdd7b2069a9964775b48b5442a6d0408602c4c4010e35deddeb26e +MISC metadata.xml 572 BLAKE2B afce82591050907a54865a291a350c87f8d791053068484547ed0c3ebb826ba2fac3e3f73ce0c44f2851e05d86f3f2ff50146616743dd91be7d7270948b62c55 SHA512 841ba06ef123bf7176bcb6fd1dc5566b9bf5c67e8209bb84b201c68cd7ca985cfb2f11403b8621bafb16f4266053698992abe6926e2488b503ed57e42396271a 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 @@ aaugustin/websockets websockets + + Compiles native C extensions + 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 +} -- cgit v1.2.3