commit: 84d9f8c12e604ae2644d52ee298c91639151b661
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 27 03:52:37 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Sep 27 03:52:37 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84d9f8c1
dev-python/pyperclip: Bump to 1.11.0
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/pyperclip/Manifest | 1 +
dev-python/pyperclip/pyperclip-1.11.0.ebuild | 61 ++++++++++++++++++++++++++++
2 files changed, 62 insertions(+)
diff --git a/dev-python/pyperclip/Manifest b/dev-python/pyperclip/Manifest
index da0abfbb4aea..2bf438cfc091 100644
--- a/dev-python/pyperclip/Manifest
+++ b/dev-python/pyperclip/Manifest
@@ -1,2 +1,3 @@
DIST pyperclip-1.10.0.tar.gz 12193 BLAKE2B
0733fb724c32b927a29dcabec739454b2b2546cce1ac4235a1999b9c73c01272ffa9be6670780a7a3e8416d1de9a202364ce17c340bc116987dd3bc824de0a2d
SHA512
eebb717e78817b34ef932fa916ae24f56ab2f064b2d20541dff06b192f69e3b33d007fe0a49b1b4ba5aeb9a633bab3139a215fce5016bf88013803713c7d402e
+DIST pyperclip-1.11.0.tar.gz 12185 BLAKE2B
31ff9747fb084046a8afb62a8799dfccdad8372cb771109cbf6d075df63e23e0a26c48afe56f850b2bbf671336ee942c26dd3f8e661523533d4cef282ead2e15
SHA512
3756e75db1dc321dafe3677956d6d84b7c730bfd282f0293931e7dc5a468f3abaf8397a5f02bee4473953026d0ac373b835fe1972b7f5fe69e661195007901ab
DIST pyperclip-1.9.0.tar.gz 20961 BLAKE2B
a489268724b7beb82ec6b28c11cbb5fe04393a800297e4f71aace7232c13b68ce05092ca949f5cdc8257343b8e8f8b3cbd5227aa03a53e32eaeba8f3146108e2
SHA512
19865ebdcce99817f92994d14e26e1cd321d85da89f3177794a93981321ac3e39c937cccbcd00c866ccb30591d4720cd97a39fd266ef8378e3a21471ee69606f
diff --git a/dev-python/pyperclip/pyperclip-1.11.0.ebuild
b/dev-python/pyperclip/pyperclip-1.11.0.ebuild
new file mode 100644
index 000000000000..1304cb64d9a6
--- /dev/null
+++ b/dev-python/pyperclip/pyperclip-1.11.0.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{11..14} )
+
+inherit distutils-r1 virtualx pypi
+
+DESCRIPTION="A cross-platform clipboard module for Python"
+HOMEPAGE="
+ https://github.com/asweigart/pyperclip/
+ https://pypi.org/project/pyperclip/
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc64 ~riscv ~s390 ~sparc
~x86"
+
+RDEPEND="
+ || (
+ x11-misc/xsel
+ x11-misc/xclip
+ kde-plasma/plasma-workspace
+ dev-python/pyqt5[${PYTHON_USEDEP}]
+ dev-python/qtpy[${PYTHON_USEDEP}]
+ )
+"
+# test at least one backend
+BDEPEND="
+ test? (
+ ${RDEPEND}
+ )
+"
+
+src_prepare() {
+ local PATCHES=(
+ "${FILESDIR}/${PN}-1.9.0-fix-test.patch"
+ )
+
+ # stupid windows
+ find -type f -exec sed -i -e 's:\r$::' {} + || die
+
+ distutils-r1_src_prepare
+
+ # klipper is hard to get working, and once we make it work,
+ # it breaks most of the other backends
+ # wl-copy requires wayland, not Xvfb
+ sed -e 's:_executable_exists("\(klipper\|wl-copy\)"):False:' \
+ -i tests/test_pyperclip.py || die
+}
+
+python_test() {
+ "${EPYTHON}" tests/test_pyperclip.py -vv ||
+ die "Tests fail on ${EPYTHON}"
+}
+
+src_test() {
+ virtx distutils-r1_src_test
+}