1 |
commit: 820e521f81d309c64c9aeaa2a4e1b7fef855fa09 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 1 15:21:59 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 1 15:53:33 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=820e521f |
7 |
|
8 |
dev-python/pyqtgraph: Bump to 0.13.1 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/pyqtgraph/Manifest | 1 + |
13 |
dev-python/pyqtgraph/pyqtgraph-0.13.1.ebuild | 73 ++++++++++++++++++++++++++++ |
14 |
2 files changed, 74 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pyqtgraph/Manifest b/dev-python/pyqtgraph/Manifest |
17 |
index 6066acd8775b..1e0ca0e74d24 100644 |
18 |
--- a/dev-python/pyqtgraph/Manifest |
19 |
+++ b/dev-python/pyqtgraph/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST pyqtgraph-0.12.4.tar.gz 1333052 BLAKE2B 4208787d1d203904d841493e10b2f1d23357b60475c9e1cfff733fe772973d4dd619ca84941049bd60299912f3077fb18c27a90fa3c0c0e712a3715b5be1d071 SHA512 8402b38fe1abaaf55d6dbc26775093993b9f642d7a9da59d2780ed38562c8653ab872c588d2e66373434491b8f397533cb3c222382065c812a28cf6b9ce34960 |
22 |
+DIST pyqtgraph-0.13.1.gh.tar.gz 1368154 BLAKE2B cb19ae6564b0fc0a4ec4fb6232f7949bb5130345380a86f0cffdee14e767d306b27c26ae3f7c011d77f21353b511d99148e1acb38e8d33598dde16362475b5a8 SHA512 bcd3d0c9c1d91ad2ea3f85f8e34e68ab999fce636ed336362253f09a7863a62c4b635d71c137c9458532c7d1f76dfc8433d476cd84121cf89488fb0860039b8f |
23 |
DIST pyqtgraph-test-data-8.tar.gz 306068 BLAKE2B f3aa418dfaf2e74950fa880da4b6dfb4ef5dbd46346b78065d885c1f9fc06fc3de86756af17e27035d4cd47d98cc7ce58c036b493837b568086a4ebceb230c78 SHA512 07ef414f2b57e00589f8c18459e88ab16001c7cc3766164cdfcd69faa26cbc90ed64611fd0c5e3b401dc6a3f1a6e9e4ce6a7d9fa96ebcc4360e03fa9fbb856d2 |
24 |
|
25 |
diff --git a/dev-python/pyqtgraph/pyqtgraph-0.13.1.ebuild b/dev-python/pyqtgraph/pyqtgraph-0.13.1.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..ef091c06b4da |
28 |
--- /dev/null |
29 |
+++ b/dev-python/pyqtgraph/pyqtgraph-0.13.1.ebuild |
30 |
@@ -0,0 +1,73 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+DISTUTILS_USE_PEP517=setuptools |
37 |
+PYTHON_COMPAT=( python3_{8..10} ) |
38 |
+ |
39 |
+inherit distutils-r1 multiprocessing |
40 |
+ |
41 |
+DESCRIPTION="A pure-python graphics and GUI library built on PyQt and numpy" |
42 |
+HOMEPAGE=" |
43 |
+ https://www.pyqtgraph.org/ |
44 |
+ https://github.com/pyqtgraph/pyqtgraph/ |
45 |
+ https://pypi.org/project/pyqtgraph/ |
46 |
+" |
47 |
+SRC_URI=" |
48 |
+ https://github.com/pyqtgraph/pyqtgraph/archive/${P}.tar.gz |
49 |
+ -> ${P}.gh.tar.gz |
50 |
+" |
51 |
+S=${WORKDIR}/${PN}-${P} |
52 |
+ |
53 |
+LICENSE="MIT" |
54 |
+SLOT="0" |
55 |
+KEYWORDS="~amd64 ~riscv ~x86" |
56 |
+IUSE="opengl svg" |
57 |
+REQUIRED_USE="test? ( opengl svg )" |
58 |
+ |
59 |
+RDEPEND=" |
60 |
+ >=dev-python/numpy-1.17[${PYTHON_USEDEP}] |
61 |
+ dev-python/scipy[${PYTHON_USEDEP}] |
62 |
+ dev-python/PyQt5[gui,widgets,opengl=,svg=,${PYTHON_USEDEP}] |
63 |
+ opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] ) |
64 |
+" |
65 |
+BDEPEND=" |
66 |
+ test? ( |
67 |
+ dev-python/h5py[${PYTHON_USEDEP}] |
68 |
+ dev-python/PyQt5[testlib,${PYTHON_USEDEP}] |
69 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
70 |
+ dev-python/pytest-xvfb[${PYTHON_USEDEP}] |
71 |
+ dev-vcs/git |
72 |
+ ) |
73 |
+" |
74 |
+ |
75 |
+distutils_enable_sphinx doc/source |
76 |
+distutils_enable_tests pytest |
77 |
+ |
78 |
+python_prepare_all() { |
79 |
+ distutils-r1_python_prepare_all |
80 |
+ |
81 |
+ if ! use opengl; then |
82 |
+ rm -r pyqtgraph/opengl || die |
83 |
+ fi |
84 |
+} |
85 |
+ |
86 |
+python_test() { |
87 |
+ local EPYTEST_DESELECT=( |
88 |
+ # apparently fragile |
89 |
+ tests/test_reload.py::test_reload |
90 |
+ |
91 |
+ # TODO |
92 |
+ tests/graphicsItems/test_ROI.py::test_PolyLineROI |
93 |
+ |
94 |
+ # pyside2 is normally skipped if not installed but these two |
95 |
+ # fail if it is installed |
96 |
+ # TODO: this could be due to USE flags, revisit when pyside2 |
97 |
+ # gains py3.9 |
98 |
+ 'pyqtgraph/examples/test_examples.py::testExamples[ DateAxisItem_QtDesigner.py - PySide2 ]' |
99 |
+ 'pyqtgraph/examples/test_examples.py::testExamples[ designerExample.py - PySide2 ]' |
100 |
+ ) |
101 |
+ |
102 |
+ epytest -p xvfb -n "$(makeopts_jobs)" |
103 |
+} |