diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-20 14:00:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-20 14:00:29 +0100 |
commit | 40a480a83a10d1718e26a6f4fc54d271c1f13a95 (patch) | |
tree | bfe08ce789f69c5862fd8e5d1bc17b22f9f21b86 /dev-python/qtawesome/qtawesome-1.2.0.ebuild | |
parent | 2eda3a3b8ebdb3fc8552feb6f49e466d3bc8e88c (diff) |
gentoo auto-resync : 20:10:2022 - 14:00:29
Diffstat (limited to 'dev-python/qtawesome/qtawesome-1.2.0.ebuild')
-rw-r--r-- | dev-python/qtawesome/qtawesome-1.2.0.ebuild | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/dev-python/qtawesome/qtawesome-1.2.0.ebuild b/dev-python/qtawesome/qtawesome-1.2.0.ebuild new file mode 100644 index 000000000000..4b24498382b2 --- /dev/null +++ b/dev-python/qtawesome/qtawesome-1.2.0.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} ) +DISTUTILS_USE_PEP517=setuptools +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}] +" +BDEPEND="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 || die "Tests failed with ${EPYTHON}" +} |