summaryrefslogtreecommitdiff
path: root/dev-python/mss
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-09-03 12:28:20 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-09-03 12:28:20 +0100
commit3f559ef486314f9b3b48d48eb303d6be68463af9 (patch)
tree3b70212f31ce4d000911c001ce13363d0909dfd1 /dev-python/mss
parent20b6ab983b55b022c6e4af317154089e18ad41cb (diff)
gentoo auto-resync : 03:09:2024 - 12:28:20
Diffstat (limited to 'dev-python/mss')
-rw-r--r--dev-python/mss/Manifest2
-rw-r--r--dev-python/mss/mss-9.0.2.ebuild57
2 files changed, 59 insertions, 0 deletions
diff --git a/dev-python/mss/Manifest b/dev-python/mss/Manifest
index 33ff25adcb5d..264aa81511e7 100644
--- a/dev-python/mss/Manifest
+++ b/dev-python/mss/Manifest
@@ -1,3 +1,5 @@
DIST mss-9.0.1.tar.gz 87504 BLAKE2B 445392b65b62e67802397e708781cbf1b3409303c68d863c4f44b0f32026b196faba1a6bb960110917ea6cf2b34b43d61d4e069fac6f6926af3e6a0b5fbab800 SHA512 22c4aa56eaf5d3c6ca752a8c966908b35256056a23f5f707d2ccd5acfbefecec6b6b8bff5d8c18024ef94f365a6ce1433aafddfdf9f7f30180af5dbd8a1f8eb7
+DIST mss-9.0.2.tar.gz 82514 BLAKE2B 9f5bec89fbe2405265070f5be03fe55ed496dddb6f28493ae2b88f131c6a6b2ed8c65969cf4b7b4256b492c8bc321e1548e5f355d802084880ff32e1eb9fcd28 SHA512 b4a9a6dd97810eb56d91c9ba65ac5e628c554e2cd038e830d87e583aa35cecf19cce337e61da814f10f8278017dca758c92c18220167f3660e322a7fba05488c
EBUILD mss-9.0.1.ebuild 1147 BLAKE2B 5e5156856a3608cc94d88e5b0d36cbcd01388a5f42c22ff0efe76179bfb0660e6efbb299a11e8cb41ba17bce67793c3ad9a6f2db46c7307e576a716d471bbbf7 SHA512 74bae67b59c5d425a4bde192153de73671a563c399e0411438f4fbfff80218485fe5924c676d2ecff60f154e71320de1cc93d3a53328da7d1f7e840ac0a20b7e
+EBUILD mss-9.0.2.ebuild 1320 BLAKE2B 0e95781b52708210bf23edcbf711e6c143ccd5f433990beaaa622335d4aa4e9d035df71eb8d69264110e0d79e857a6b782f275e190075cd688a99ca16b020353 SHA512 c498e1bb7a3fb442a67b36588ccd112216fa13dbda0ef64aebfbfff0ee8dc63b352563630defbd42185acaed53ea8478929cd1ef836699456996e5ce9b9eab3f
MISC metadata.xml 389 BLAKE2B 0bf17290bb77ee34c59b8db547365e13ad284fbbd8468078995ac891450453a15920e188d75b9f8aed14319ce211aa968d10d0d38c7347a9c5269431bf290f6a SHA512 468c7ff3a88f5d8b2efa646572ce29b45a4b2bc1bdb1a7f1cdaa841b369caa53e5a3d8fafb01b310505d50d9d12b8a725a5c9e926de15bd377ea07342a681182
diff --git a/dev-python/mss/mss-9.0.2.ebuild b/dev-python/mss/mss-9.0.2.ebuild
new file mode 100644
index 000000000000..ca4af3147f7d
--- /dev/null
+++ b/dev-python/mss/mss-9.0.2.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=hatchling
+PYTHON_COMPAT=( python3_{10..13} )
+
+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
+
+src_prepare() {
+ distutils-r1_src_prepare
+ sed -i -e '/--cov/d' pyproject.toml || die
+}
+
+src_test() {
+ virtx distutils-r1_src_test
+}
+
+python_test() {
+ local EPYTEST_IGNORE=(
+ # upstream tests for self-build, apparently broken by setuptools
+ # issuing deprecation warnings
+ src/tests/test_setup.py
+ )
+
+ local EPYTEST_DESELECT=(
+ # unreliable `lsof -U | grep ...` tests
+ src/tests/test_leaks.py
+ # frequently crashing, known upstream, not a regression
+ # https://github.com/BoboTiG/python-mss/issues/251
+ src/tests/test_implementation.py::test_thread_safety
+ )
+
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ epytest -p rerunfailures
+}