From 6a6efb4585c17504a3ed6a77ecb7bf4591d6859d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 18 Sep 2025 07:03:05 +0200 Subject: [PATCH] dev-python/pyperclip: Bump to 1.10.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/pyperclip/Manifest | 1 + dev-python/pyperclip/pyperclip-1.10.0.ebuild | 61 ++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 dev-python/pyperclip/pyperclip-1.10.0.ebuild diff --git a/dev-python/pyperclip/Manifest b/dev-python/pyperclip/Manifest index bbd745d3b976a..da0abfbb4aea5 100644 --- a/dev-python/pyperclip/Manifest +++ b/dev-python/pyperclip/Manifest @@ -1 +1,2 @@ +DIST pyperclip-1.10.0.tar.gz 12193 BLAKE2B 0733fb724c32b927a29dcabec739454b2b2546cce1ac4235a1999b9c73c01272ffa9be6670780a7a3e8416d1de9a202364ce17c340bc116987dd3bc824de0a2d SHA512 eebb717e78817b34ef932fa916ae24f56ab2f064b2d20541dff06b192f69e3b33d007fe0a49b1b4ba5aeb9a633bab3139a215fce5016bf88013803713c7d402e DIST pyperclip-1.9.0.tar.gz 20961 BLAKE2B a489268724b7beb82ec6b28c11cbb5fe04393a800297e4f71aace7232c13b68ce05092ca949f5cdc8257343b8e8f8b3cbd5227aa03a53e32eaeba8f3146108e2 SHA512 19865ebdcce99817f92994d14e26e1cd321d85da89f3177794a93981321ac3e39c937cccbcd00c866ccb30591d4720cd97a39fd266ef8378e3a21471ee69606f diff --git a/dev-python/pyperclip/pyperclip-1.10.0.ebuild b/dev-python/pyperclip/pyperclip-1.10.0.ebuild new file mode 100644 index 0000000000000..1304cb64d9a69 --- /dev/null +++ b/dev-python/pyperclip/pyperclip-1.10.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 +}