From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CE894158090 for ; Sat, 21 May 2022 13:49:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 15E9CE08F4; Sat, 21 May 2022 13:49:20 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D202DE08F4 for ; Sat, 21 May 2022 13:49:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C3D523415B1 for ; Sat, 21 May 2022 13:49:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1CB063AA for ; Sat, 21 May 2022 13:49:17 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1653140951.f61659ecd2e5a4976c33df582b7457834ab15e91.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyperclip/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pyperclip/pyperclip-1.8.2-r1.ebuild X-VCS-Directories: dev-python/pyperclip/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: f61659ecd2e5a4976c33df582b7457834ab15e91 X-VCS-Branch: master Date: Sat, 21 May 2022 13:49:17 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3c0df48d-8b95-4f56-be3e-76e9c4534ec9 X-Archives-Hash: ae51c42e09265500a49e0cab1f3bad7d commit: f61659ecd2e5a4976c33df582b7457834ab15e91 Author: Michał Górny gentoo org> AuthorDate: Sat May 21 13:25:27 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat May 21 13:49:11 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f61659ec dev-python/pyperclip: Use PEP517 build Signed-off-by: Michał Górny gentoo.org> dev-python/pyperclip/pyperclip-1.8.2-r1.ebuild | 65 ++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/dev-python/pyperclip/pyperclip-1.8.2-r1.ebuild b/dev-python/pyperclip/pyperclip-1.8.2-r1.ebuild new file mode 100644 index 000000000000..6671b2930d46 --- /dev/null +++ b/dev-python/pyperclip/pyperclip-1.8.2-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} ) + +inherit distutils-r1 virtualx + +DESCRIPTION="A cross-platform clipboard module for Python" +HOMEPAGE=" + https://github.com/asweigart/pyperclip/ + https://pypi.org/project/pyperclip/ +" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + || ( + ( + x11-misc/xsel + sys-apps/which + ) + ( + x11-misc/xclip + sys-apps/which + ) + ( + kde-plasma/plasma-workspace + sys-apps/which + ) + dev-python/PyQt5[${PYTHON_USEDEP}] + dev-python/QtPy[${PYTHON_USEDEP}] + ) +" +# test at least one backend +BDEPEND=" + test? ( + ${RDEPEND} + ) +" + +src_prepare() { + # stupid windows + find -type f -exec sed -i -e 's:\r$::' {} + || die + # 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 + distutils-r1_src_prepare +} + +python_test() { + "${EPYTHON}" tests/test_pyperclip.py -vv || + die "Tests fail on ${EPYTHON}" +} + +src_test() { + virtx distutils-r1_src_test +}