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 E19F6158091 for ; Sun, 12 Jun 2022 14:52:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 221D5E0923; Sun, 12 Jun 2022 14:52:17 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D5858E0923 for ; Sun, 12 Jun 2022 14:52:16 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EDFBE341BBD for ; Sun, 12 Jun 2022 14:52:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F11E1502 for ; Sun, 12 Jun 2022 14:52:12 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1655045507.838ad4a827c90295cb9fdba2761cb99ac7976678.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/qtawesome/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/qtawesome/qtawesome-1.1.1-r1.ebuild X-VCS-Directories: dev-python/qtawesome/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 838ad4a827c90295cb9fdba2761cb99ac7976678 X-VCS-Branch: master Date: Sun, 12 Jun 2022 14:52:12 +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: 908f8263-9123-4124-97b2-04463fce0d29 X-Archives-Hash: d28dea98eaf240f2161ee833169d06ff commit: 838ad4a827c90295cb9fdba2761cb99ac7976678 Author: Sam James gentoo org> AuthorDate: Sun Jun 12 14:50:08 2022 +0000 Commit: Sam James gentoo org> CommitDate: Sun Jun 12 14:51:47 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=838ad4a8 dev-python/qtawesome: fix distutils-r1 usage Signed-off-by: Sam James gentoo.org> dev-python/qtawesome/qtawesome-1.1.1-r1.ebuild | 39 ++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/dev-python/qtawesome/qtawesome-1.1.1-r1.ebuild b/dev-python/qtawesome/qtawesome-1.1.1-r1.ebuild new file mode 100644 index 000000000000..d776761a2b50 --- /dev/null +++ b/dev-python/qtawesome/qtawesome-1.1.1-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..11} ) +inherit distutils-r1 virtualx + +MY_PN="QtAwesome" +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Enables iconic fonts such as Font Awesome in PyQt" +HOMEPAGE="https://github.com/spyder-ide/qtawesome/ https://pypi.org/project/QtAwesome/" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" +S=${WORKDIR}/${MY_P} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + media-fonts/fontawesome + dev-python/QtPy[pyqt5(+),gui,${PYTHON_USEDEP}] +" + +DEPEND="test? ( dev-python/pytest-qt[${PYTHON_USEDEP}] )" + +distutils_enable_tests pytest +distutils_enable_sphinx docs/source + +src_test() { + virtx distutils-r1_src_test +} + +python_test() { + # Tests fail with pyside2, so depend on QtPy[pyqt5] and explicitly run + # the tests with pyqt5 + PYTEST_QT_API="pyqt5" epytest +}