1 |
commit: 191031bf0fc1be41139ccb688c01aa4997f4d493 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 22 10:43:04 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 22 10:55:38 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=191031bf |
7 |
|
8 |
dev-python/pyzmq: add 24.0.1 |
9 |
|
10 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
11 |
|
12 |
dev-python/pyzmq/Manifest | 1 + |
13 |
dev-python/pyzmq/pyzmq-24.0.1.ebuild | 81 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 82 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pyzmq/Manifest b/dev-python/pyzmq/Manifest |
17 |
index a92fe62bdc42..6a155b7c8df1 100644 |
18 |
--- a/dev-python/pyzmq/Manifest |
19 |
+++ b/dev-python/pyzmq/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST pyzmq-23.2.1.gh.tar.gz 402170 BLAKE2B 4cedd065cecbabc0e18928423e853a38953cd1f360fc326573c60bf69ffefadf3bed556d9d71eedf824e646ae23640d14b6aa8938c397c367be32cc36d300e38 SHA512 4ba236b87db062b245a04530de5b1e8385491107ae8de465f6f664c75ab8a929d57491eb3f8dddf31ff1db7b1eee89a6892a9a844bc285096cc9960704b36c9c |
22 |
+DIST pyzmq-24.0.1.gh.tar.gz 404000 BLAKE2B 01928ba3c64a5afce8e7a97821658da2067a5f6c36c0173ab2f818e83a729939f346ef67bb9a39251abf365f5772abdf7e9e62afb4cc434b5603f474485a7427 SHA512 d4b6346e780f356941a624321f1619771fb2f0ef9f65a3c0a03e837ef081ece7ed59c03f57e8647ab1cd38cfc7404d597dd294768f9e9b890115b9eebc085484 |
23 |
|
24 |
diff --git a/dev-python/pyzmq/pyzmq-24.0.1.ebuild b/dev-python/pyzmq/pyzmq-24.0.1.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..d68843bf062b |
27 |
--- /dev/null |
28 |
+++ b/dev-python/pyzmq/pyzmq-24.0.1.ebuild |
29 |
@@ -0,0 +1,81 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{8..11} ) |
36 |
+# TODO: Find out exactly where this error comes from |
37 |
+# error: '<' not supported between instances of 'str' and 'int' |
38 |
+#DISTUTILS_USE_PEP517=setuptools |
39 |
+PYTHON_REQ_USE="threads(+)" |
40 |
+ |
41 |
+inherit flag-o-matic distutils-r1 toolchain-funcs |
42 |
+ |
43 |
+DESCRIPTION="Lightweight and super-fast messaging library built on top of the ZeroMQ library" |
44 |
+HOMEPAGE=" |
45 |
+ https://zeromq.org/languages/python/ |
46 |
+ https://pypi.org/project/pyzmq/ |
47 |
+ https://github.com/zeromq/pyzmq/" |
48 |
+SRC_URI=" |
49 |
+ https://github.com/zeromq/pyzmq/archive/v${PV}.tar.gz |
50 |
+ -> ${P}.gh.tar.gz" |
51 |
+ |
52 |
+LICENSE="LGPL-3" |
53 |
+SLOT="0" |
54 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" |
55 |
+IUSE="+draft" |
56 |
+ |
57 |
+DEPEND=" |
58 |
+ >=net-libs/zeromq-4.2.2-r2:=[drafts] |
59 |
+" |
60 |
+# it uses cffi backend for pypy, cython backend for cpython |
61 |
+RDEPEND="${DEPEND} |
62 |
+ $(python_gen_cond_dep ' |
63 |
+ dev-python/py[${PYTHON_USEDEP}] |
64 |
+ dev-python/cffi:=[${PYTHON_USEDEP}] |
65 |
+ ' pypy3) |
66 |
+" |
67 |
+BDEPEND=" |
68 |
+ $(python_gen_cond_dep ' |
69 |
+ dev-python/cython[${PYTHON_USEDEP}] |
70 |
+ ' 'python*') |
71 |
+ test? ( |
72 |
+ dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] |
73 |
+ >=www-servers/tornado-5.0.2[${PYTHON_USEDEP}] |
74 |
+ ) |
75 |
+" |
76 |
+ |
77 |
+PATCHES=( |
78 |
+ "${FILESDIR}"/${PN}-23.2.0-libdir.patch |
79 |
+) |
80 |
+ |
81 |
+distutils_enable_tests pytest |
82 |
+distutils_enable_sphinx docs \ |
83 |
+ "dev-python/numpydoc" |
84 |
+ |
85 |
+python_configure_all() { |
86 |
+ tc-export CC |
87 |
+ append-cppflags -DZMQ_BUILD_DRAFT_API=$(usex draft '1' '0') |
88 |
+} |
89 |
+ |
90 |
+python_compile() { |
91 |
+ esetup.py cython --force |
92 |
+ ZMQ_PREFIX="${EPREFIX}/usr" distutils-r1_python_compile |
93 |
+} |
94 |
+ |
95 |
+python_test() { |
96 |
+ local EPYTEST_DESELECT=( |
97 |
+ # TODO |
98 |
+ zmq/tests/test_constants.py::TestConstants::test_draft |
99 |
+ zmq/tests/test_cython.py::test_cython |
100 |
+ |
101 |
+ # hangs often |
102 |
+ zmq/tests/test_log.py::TestPubLog::test_blank_root_topic |
103 |
+ ) |
104 |
+ local EPYTEST_IGNORE=( |
105 |
+ zmq/tests/test_mypy.py |
106 |
+ ) |
107 |
+ |
108 |
+ cd "${BUILD_DIR}/lib" || die |
109 |
+ epytest -p no:flaky |
110 |
+} |