diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-04-21 06:20:33 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-04-21 06:20:33 +0200 |
commit | b70e8771890959c58575535668cd00587ba99437 (patch) | |
tree | b2ed64e3714031143522f066b1407ae9204ae761 /dev-python/mss/mss-9.0.1.ebuild | |
parent | dev-python/ensurepip-setuptools: Bump to 67.7.0 (diff) | |
download | gentoo-b70e8771890959c58575535668cd00587ba99437.tar.gz gentoo-b70e8771890959c58575535668cd00587ba99437.tar.bz2 gentoo-b70e8771890959c58575535668cd00587ba99437.zip |
dev-python/mss: Bump to 9.0.1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/mss/mss-9.0.1.ebuild')
-rw-r--r-- | dev-python/mss/mss-9.0.1.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/dev-python/mss/mss-9.0.1.ebuild b/dev-python/mss/mss-9.0.1.ebuild new file mode 100644 index 000000000000..5f9998b05e09 --- /dev/null +++ b/dev-python/mss/mss-9.0.1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..11} ) + +inherit distutils-r1 pypi virtualx + +DESCRIPTION="An ultra fast cross-platform multiple screenshots module in python using ctypes" +HOMEPAGE=" + https://github.com/BoboTiG/python-mss/ + https://pypi.org/project/mss/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" + +BDEPEND=" + test? ( + dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] + dev-python/pyvirtualdisplay[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest +distutils_enable_sphinx docs/source dev-python/sphinx-rtd-theme + +EPYTEST_IGNORE=( + # upstream tests for self-build, apparently broken by setuptools + # issuing deprecation warnings + src/tests/test_setup.py +) + +EPYTEST_DESELECT=( + # unreliable `lsof -U | grep ...` tests + src/tests/test_leaks.py +) + +src_prepare() { + sed -i -e '/--cov/d' setup.cfg || die + distutils-r1_src_prepare +} + +src_test() { + virtx distutils-r1_src_test +} |