diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-09-05 08:13:23 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-09-05 08:13:23 +0000 |
| commit | 3ceeeb71476e4e7c29c37bbd1a2b3a97e34761e2 (patch) | |
| tree | cb83708f1390fccc0f8521b61b63a2d9ea7bd752 /dev-python/pynput | |
| parent | 5ce2273fa2607278dbc7825cd7f518b2f2c8561a (diff) | |
| download | baldeagleos-repo-3ceeeb71476e4e7c29c37bbd1a2b3a97e34761e2.tar.gz baldeagleos-repo-3ceeeb71476e4e7c29c37bbd1a2b3a97e34761e2.tar.xz baldeagleos-repo-3ceeeb71476e4e7c29c37bbd1a2b3a97e34761e2.zip | |
Adding metadata
Diffstat (limited to 'dev-python/pynput')
| -rw-r--r-- | dev-python/pynput/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/pynput/files/patches/uinput.patch | 37 | ||||
| -rw-r--r-- | dev-python/pynput/files/patches/wheel.patch | 11 | ||||
| -rw-r--r-- | dev-python/pynput/pynput-1.8.1.ebuild | 28 |
4 files changed, 77 insertions, 0 deletions
diff --git a/dev-python/pynput/Manifest b/dev-python/pynput/Manifest index 42a186bc9f38..b5e74eac5ab4 100644 --- a/dev-python/pynput/Manifest +++ b/dev-python/pynput/Manifest @@ -1 +1,2 @@ DIST pynput-1.7.6.tar.gz 79501 BLAKE2B cb356271ef0688ff6532fb79b858c10fb3a52abc4f6db5f4758948cb16f01e96e9377894ea211952b58f5ff6d997ceeec9ba51a29aef866e65cd83900a9894ae SHA512 66639096a83b7ea7c926bfab67ef6c54b913fc4ffe5814bbc4ace6e4d298237a3623066f4f5c08a2bcf1cc5e40d18dc35b77c18afbd0d00b7b4bf4ed2233d9ff +DIST pynput-1.8.1.tar.gz 82289 BLAKE2B 07338c7d3f755af103d0f61874d536a0444cdddf0c3a450e51cf87e1375943fffcf20a747f25b2ca53365250e8e09d403421cf658077603b7c86a9e5794d3bd6 SHA512 4f28bbc908a4ecbfb8ef1d5b222ddc36269fe2f6361a45609afd60196eb05474569efd2267ae2028abfb85eae6825cea6215351974419ca640c7e069e6983132 diff --git a/dev-python/pynput/files/patches/uinput.patch b/dev-python/pynput/files/patches/uinput.patch new file mode 100644 index 000000000000..a464b02af0c9 --- /dev/null +++ b/dev-python/pynput/files/patches/uinput.patch @@ -0,0 +1,37 @@ +diff --git a/lib/pynput/_util/uinput.py b/lib/pynput/_util/uinput.py +index b0a6a78..c891b83 100644 +--- a/lib/pynput/_util/uinput.py ++++ b/lib/pynput/_util/uinput.py +@@ -72,6 +72,14 @@ def _device(self, paths): + except OSError: + continue + ++ # Some programmable mouse devices report each programmable input as ++ # a separate capability, so it is possible for a mouse to exceed ++ # keyboards in capability count; for this reason we will prefer a ++ # device with "keyboard" in its name ++ if 'keyboard' in next_dev.name.lower(): ++ dev = next_dev ++ break ++ + # Does this device provide more handled event codes? + capabilities = next_dev.capabilities() + next_count = sum( +diff --git a/lib/pynput/keyboard/_uinput.py b/lib/pynput/keyboard/_uinput.py +index 2f63dd3..747d19d 100644 +--- a/lib/pynput/keyboard/_uinput.py ++++ b/lib/pynput/keyboard/_uinput.py +@@ -204,10 +204,10 @@ def as_char(k): + as_char(key): ( + vk, + set() +- | {Key.shift} if i & 1 else set() +- | {Key.alt_gr} if i & 2 else set()) ++ | ({Key.shift} if i & 1 else set()) ++ | ({Key.alt_gr} if i & 2 else set())) + for vk, keys in self._vk_table.items() +- for i, key in enumerate(keys) ++ for i, key in reversed(list(enumerate(keys))) + if key is not None and as_char(key) is not None} + + def for_vk(self, vk, modifiers): diff --git a/dev-python/pynput/files/patches/wheel.patch b/dev-python/pynput/files/patches/wheel.patch new file mode 100644 index 000000000000..064b21ce5fe9 --- /dev/null +++ b/dev-python/pynput/files/patches/wheel.patch @@ -0,0 +1,11 @@ +diff --git a/setup.cfg b/setup.cfg +index 99723b7..8ae701e 100644 +--- a/setup.cfg ++++ b/setup.cfg +@@ -1,6 +1,3 @@ +-[bdist_wheel] +-universal = 1 +- + [build_sphinx] + source-dir = docs + build-dir = build/docs diff --git a/dev-python/pynput/pynput-1.8.1.ebuild b/dev-python/pynput/pynput-1.8.1.ebuild new file mode 100644 index 000000000000..21ac12c2c518 --- /dev/null +++ b/dev-python/pynput/pynput-1.8.1.ebuild @@ -0,0 +1,28 @@ +# Copyright 2021-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 pypi + +DESCRIPTION="Sends virtual input commands" +HOMEPAGE="https://github.com/moses-palmer/pynput https://pypi.org/project/pynput" +RDEPEND=" + dev-python/evdev[${PYTHON_USEDEP}] + X? ( dev-python/python-xlib[${PYTHON_USEDEP}] ) + dev-python/six[${PYTHON_USEDEP}] +" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="X" + +PATCHES=( + # issue # 657 + "${FILESDIR}/patches/uinput.patch" + # Remove deprecated bdist_wheel.universal + "${FILESDIR}/patches/wheel.patch" +) |
