1 |
commit: 031559e03353f9a49a8640a75312915c54c5f6ca |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 31 15:27:13 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 31 15:42:30 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=031559e0 |
7 |
|
8 |
dev-python/pyperclip: Port to py39 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/pyperclip/pyperclip-1.5.27.ebuild | 23 ++++++++++++++++++----- |
13 |
dev-python/pyperclip/pyperclip-1.7.0.ebuild | 3 +-- |
14 |
2 files changed, 19 insertions(+), 7 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/pyperclip/pyperclip-1.5.27.ebuild b/dev-python/pyperclip/pyperclip-1.5.27.ebuild |
17 |
index 15e303b5c97..f1298bc162c 100644 |
18 |
--- a/dev-python/pyperclip/pyperclip-1.5.27.ebuild |
19 |
+++ b/dev-python/pyperclip/pyperclip-1.5.27.ebuild |
20 |
@@ -3,8 +3,8 @@ |
21 |
|
22 |
EAPI=6 |
23 |
|
24 |
-PYTHON_COMPAT=( python2_7 python3_6 python3_7) |
25 |
-inherit distutils-r1 |
26 |
+PYTHON_COMPAT=( python2_7 python3_{6..8} ) |
27 |
+inherit distutils-r1 virtualx |
28 |
|
29 |
DESCRIPTION="A cross-platform clipboard module for Python." |
30 |
HOMEPAGE="https://github.com/asweigart/pyperclip" |
31 |
@@ -13,7 +13,20 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip" |
32 |
LICENSE="BSD" |
33 |
SLOT="0" |
34 |
KEYWORDS="amd64 arm64 ~ppc64 x86" |
35 |
-IUSE="" |
36 |
|
37 |
-DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" |
38 |
-RDEPEND="" |
39 |
+RDEPEND=" |
40 |
+ || ( |
41 |
+ x11-misc/xclip |
42 |
+ x11-misc/xsel |
43 |
+ dev-python/PyQt5[${PYTHON_USEDEP}] |
44 |
+ ) |
45 |
+" |
46 |
+ |
47 |
+python_test() { |
48 |
+ "${EPYTHON}" tests/test_copy_paste.py -vv || |
49 |
+ die "Tests fail on ${EPYTHON}" |
50 |
+} |
51 |
+ |
52 |
+src_test() { |
53 |
+ virtx distutils-r1_src_test |
54 |
+} |
55 |
|
56 |
diff --git a/dev-python/pyperclip/pyperclip-1.7.0.ebuild b/dev-python/pyperclip/pyperclip-1.7.0.ebuild |
57 |
index 56aca177ce2..8ae4348d65c 100644 |
58 |
--- a/dev-python/pyperclip/pyperclip-1.7.0.ebuild |
59 |
+++ b/dev-python/pyperclip/pyperclip-1.7.0.ebuild |
60 |
@@ -3,7 +3,7 @@ |
61 |
|
62 |
EAPI=7 |
63 |
|
64 |
-PYTHON_COMPAT=( python3_{6,7,8} ) |
65 |
+PYTHON_COMPAT=( python3_{6..9} ) |
66 |
inherit distutils-r1 virtualx |
67 |
|
68 |
DESCRIPTION="A cross-platform clipboard module for Python." |
69 |
@@ -14,7 +14,6 @@ LICENSE="BSD" |
70 |
SLOT="0" |
71 |
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~ppc64 sparc x86" |
72 |
|
73 |
-DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" |
74 |
RDEPEND=" |
75 |
|| ( |
76 |
x11-misc/xclip |