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/websockify/
Date: Tue, 31 Jan 2023 16:15:01
Message-Id: 1675181496.0cdbfb6c722cd9eda16b4dfcde3482e7b790850c.mgorny@gentoo
1 commit: 0cdbfb6c722cd9eda16b4dfcde3482e7b790850c
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 31 16:11:36 2023 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 31 16:11:36 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cdbfb6c
7
8 dev-python/websockify: PEP517
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/websockify/websockify-0.10.0-r2.ebuild | 48 +++++++++++++++++++++++
13 1 file changed, 48 insertions(+)
14
15 diff --git a/dev-python/websockify/websockify-0.10.0-r2.ebuild b/dev-python/websockify/websockify-0.10.0-r2.ebuild
16 new file mode 100644
17 index 000000000000..c9e77d0862f5
18 --- /dev/null
19 +++ b/dev-python/websockify/websockify-0.10.0-r2.ebuild
20 @@ -0,0 +1,48 @@
21 +# Copyright 1999-2023 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +DISTUTILS_USE_PEP517=setuptools
27 +PYTHON_COMPAT=( python3_{9..11} )
28 +
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="WebSockets support for any application/server"
32 +HOMEPAGE="
33 + https://github.com/novnc/websockify/
34 + https://pypi.org/project/websockify/
35 +"
36 +SRC_URI="
37 + https://github.com/novnc/websockify/archive/v${PV}.tar.gz
38 + -> ${P}.gh.tar.gz
39 +"
40 +
41 +LICENSE="LGPL-3"
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
44 +
45 +RDEPEND="
46 + dev-python/numpy[${PYTHON_USEDEP}]
47 +"
48 +BDEPEND="
49 + test? (
50 + dev-python/jwcrypto[${PYTHON_USEDEP}]
51 + )
52 +"
53 +
54 +PATCHES=(
55 + "${FILESDIR}/${P}-fix-jwcrypto-1.3.patch"
56 +)
57 +
58 +distutils_enable_tests pytest
59 +
60 +EPYTEST_DESELECT=(
61 + # TODO: incompatible with current jwcrypto? (not a regression)
62 + tests/test_token_plugins.py::JWSTokenTestCase::test_asymmetric_jwe_token_plugin
63 +)
64 +
65 +python_install_all() {
66 + doman docs/${PN}.1
67 + distutils-r1_python_install_all
68 +}