summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@gentoo.org>2021-11-03 11:49:36 +0100
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2021-11-03 11:49:57 +0100
commit9b93f1e69414d014090415443c08326539b6d9b9 (patch)
treeab004039b505aff9d245addde3cb09a2585d42a1 /dev-python/qtawesome
parentnet-analyzer/zabbix: removed obsolete 4.0.33, 5.0.15 & 5.4.4 (diff)
downloadgentoo-9b93f1e69414d014090415443c08326539b6d9b9.tar.gz
gentoo-9b93f1e69414d014090415443c08326539b6d9b9.tar.bz2
gentoo-9b93f1e69414d014090415443c08326539b6d9b9.zip
dev-python/qtawesome: add version 1.1.0
Closes: https://bugs.gentoo.org/812887 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'dev-python/qtawesome')
-rw-r--r--dev-python/qtawesome/Manifest1
-rw-r--r--dev-python/qtawesome/metadata.xml8
-rw-r--r--dev-python/qtawesome/qtawesome-1.1.0.ebuild41
3 files changed, 46 insertions, 4 deletions
diff --git a/dev-python/qtawesome/Manifest b/dev-python/qtawesome/Manifest
index 2eca461d5cb2..18895a00c135 100644
--- a/dev-python/qtawesome/Manifest
+++ b/dev-python/qtawesome/Manifest
@@ -1 +1,2 @@
DIST QtAwesome-1.0.3.tar.gz 878811 BLAKE2B f4392caf940ffecabf4848e892226a0871686d34a2190e35c4b11a0803a006ca0a9bfb09b3de03f7baba6777eec40ede30e35aa702bc83d9eacfd45cdde207aa SHA512 90ff132034ccc21c358b341e21aa848c34dac1c10e41720f57870f6c73fa21d1da944e4ca2ce2ded034c9edd85679181f0bd7a6a949f46a582a4402a620f2849
+DIST QtAwesome-1.1.0.tar.gz 2277438 BLAKE2B cda30636fb271da13a5c146cf84971ca10cc0bb527235319fe289730ac859dd4e23c679b963f4c0a65c26f83d2dfaac33fa0907f8ca64bd6d5a346d9ecbde30d SHA512 3fcd4704a57a52f1f46a0a55bc52255d2d600ff407a3c568da3e4bdc53d74153199869b4ea7bfaf349373fa876a950cae028cc7c87bc2d395b0aacbb64309407
diff --git a/dev-python/qtawesome/metadata.xml b/dev-python/qtawesome/metadata.xml
index b1ad24d6f653..b836af878978 100644
--- a/dev-python/qtawesome/metadata.xml
+++ b/dev-python/qtawesome/metadata.xml
@@ -2,6 +2,10 @@
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
+ <email>andrewammerlaan@gentoo.org</email>
+ <name>Andrew Ammerlaan</name>
+ </maintainer>
+ <maintainer type="person">
<email>grozin@gentoo.org</email>
<name>Andrey Grozin</name>
</maintainer>
@@ -9,10 +13,6 @@
<email>python@gentoo.org</email>
<name>Python</name>
</maintainer>
- <maintainer type="person">
- <email>andrewammerlaan@gentoo.org</email>
- <name>Andrew Ammerlaan</name>
- </maintainer>
<longdescription lang="en">
QtAwesome enables iconic fonts such as Font Awesome and Elusive Icons
in PyQt and PySide applications.
diff --git a/dev-python/qtawesome/qtawesome-1.1.0.ebuild b/dev-python/qtawesome/qtawesome-1.1.0.ebuild
new file mode 100644
index 000000000000..8f363c525037
--- /dev/null
+++ b/dev-python/qtawesome/qtawesome-1.1.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+
+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"
+
+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}] )"
+
+S="${WORKDIR}/${MY_P}"
+
+distutils_enable_tests pytest
+distutils_enable_sphinx docs/source
+
+src_test() {
+ virtx python_foreach_impl python_test
+}
+
+python_test() {
+ # Tests fail with pyside2, so depend on QtPy[pyqt5] and explicitly run
+ # the tests with pyqt5
+ PYTEST_QT_API="pyqt5" epytest
+}