From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1A9DD139368 for ; Thu, 5 Aug 2021 18:53:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C2D14E0833; Thu, 5 Aug 2021 18:53:19 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AAE95E0833 for ; Thu, 5 Aug 2021 18:53:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A23E5342D5A for ; Thu, 5 Aug 2021 18:53:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1A8D485B for ; Thu, 5 Aug 2021 18:53:17 +0000 (UTC) From: "Louis Sautier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Louis Sautier" Message-ID: <1628189555.a8fa5fd7d0dd55197ac350a46fcce7be88c6f39e.sbraz@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/websockets/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/websockets/Manifest dev-python/websockets/websockets-9.1-r1.ebuild X-VCS-Directories: dev-python/websockets/ X-VCS-Committer: sbraz X-VCS-Committer-Name: Louis Sautier X-VCS-Revision: a8fa5fd7d0dd55197ac350a46fcce7be88c6f39e X-VCS-Branch: master Date: Thu, 5 Aug 2021 18:53:17 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f696462e-c2ec-4245-b0c7-e545298a510c X-Archives-Hash: bcf7aa8a405e8b66666be9af60569fea commit: a8fa5fd7d0dd55197ac350a46fcce7be88c6f39e Author: Louis Sautier gentoo org> AuthorDate: Thu Aug 5 00:24:56 2021 +0000 Commit: Louis Sautier gentoo org> CommitDate: Thu Aug 5 18:52:35 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8fa5fd7 dev-python/websockets: enable py3.10 via backported patch Signed-off-by: Louis Sautier gentoo.org> dev-python/websockets/Manifest | 1 + dev-python/websockets/websockets-9.1-r1.ebuild | 35 ++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/dev-python/websockets/Manifest b/dev-python/websockets/Manifest index 91482ee75fc..e6d18855542 100644 --- a/dev-python/websockets/Manifest +++ b/dev-python/websockets/Manifest @@ -1 +1,2 @@ +DIST websockets-9.1-python-3.10-support.patch.gz 6940 BLAKE2B e4835c7d5efaf956d07b884c85e0b95f26674bf36164fa8362d1c1a564a959bde761d25e747333c58864f74a5ea1b199f228a46ec6a1647c5495ea032020c179 SHA512 7fb4b298a9167c8d913e293fa7549b21d5acb333a5b97e0624a22cb83548ef548b819ac23750c40295140b6f83a701c73a81fdcaed3ab8e704dbee8e17d22f1d DIST websockets-9.1-src.tar.gz 191813 BLAKE2B cb3807f01e1a4c22a40bf5150d1e8b21ca786dc5bc4da8f3e6602971f3f7c79b57092f5ddfe3ee52ec00e7fd15f3a992fdbb94b5e26599f2621a7f51434ba6dd SHA512 ff2907a913ff0b8ced6dda72b6fc6512a2ece3ffded2e2dcb8ff6805de9ad504430cc1871c1f6e02ab8069e7b96b2e7609afaf3c9c25f9271b28e2daa72bd3ac diff --git a/dev-python/websockets/websockets-9.1-r1.ebuild b/dev-python/websockets/websockets-9.1-r1.ebuild new file mode 100644 index 00000000000..4fe1b8159c4 --- /dev/null +++ b/dev-python/websockets/websockets-9.1-r1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) + +inherit distutils-r1 + +DESCRIPTION="Library for building WebSocket servers and clients in Python" +HOMEPAGE="https://websockets.readthedocs.io/" +SRC_URI=" + https://github.com/aaugustin/${PN}/archive/${PV}.tar.gz -> ${P}-src.tar.gz + https://dev.gentoo.org/~sbraz/${P}-python-3.10-support.patch.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86" + +distutils_enable_tests unittest + +PATCHES=( + # https://github.com/aaugustin/websockets/commit/08d8011132ba038b3f6c4d591189b57af4c9f147 + "${WORKDIR}/${P}-python-3.10-support.patch" +) + +src_prepare() { + # these fail due to timeouts on slower hardware + sed -e 's:test_keepalive_ping_with_no_ping_timeout:_&:' \ + -e 's:test_keepalive_ping(:_&:' \ + -i tests/legacy/test_protocol.py || die + + distutils-r1_src_prepare +}