summaryrefslogtreecommitdiff
path: root/dev-python/pynput
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-04 05:48:38 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-04 05:48:38 -0500
commitbfd9c39e4712ebdb442d4ca0673061faed1e70e1 (patch)
tree0d7a74b4463ee387f9cf9368ceb1b757f694f72a /dev-python/pynput
parentf716a9fe6455d39eef01e718aae68dae61c19704 (diff)
downloadbaldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.gz
baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.xz
baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.zip
Revert "Adding metadata"
This reverts commit f716a9fe6455d39eef01e718aae68dae61c19704.
Diffstat (limited to 'dev-python/pynput')
-rw-r--r--dev-python/pynput/Manifest1
-rw-r--r--dev-python/pynput/files/patches/uinput.patch19
-rw-r--r--dev-python/pynput/files/patches/wheel.patch11
-rw-r--r--dev-python/pynput/metadata.xml12
-rw-r--r--dev-python/pynput/pynput-1.8.2.ebuild28
5 files changed, 71 insertions, 0 deletions
diff --git a/dev-python/pynput/Manifest b/dev-python/pynput/Manifest
new file mode 100644
index 000000000000..711a13767718
--- /dev/null
+++ b/dev-python/pynput/Manifest
@@ -0,0 +1 @@
+DIST pynput-1.8.2.tar.gz 82818 BLAKE2B 236ac06927423b6311cbf176776279cdfb96b7a2b5a76eab84bab2ea01c16a98d6414e224009a51408d9c43b9cdf04cb9f77b10bd7d26947753a032e6fa4b044 SHA512 326d6044f4d96f421e98fe37d792feb2b2525e4c95632ad5ac94eb2b4501ea1ada3a54c117fd85d380f1d7e0598094fb331af9275d6b17efc274e276ebb48743
diff --git a/dev-python/pynput/files/patches/uinput.patch b/dev-python/pynput/files/patches/uinput.patch
new file mode 100644
index 000000000000..44d17e803ed1
--- /dev/null
+++ b/dev-python/pynput/files/patches/uinput.patch
@@ -0,0 +1,19 @@
+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 @@ class ListenerMixin(object):
+ 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/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/metadata.xml b/dev-python/pynput/metadata.xml
new file mode 100644
index 000000000000..26aa32f063b5
--- /dev/null
+++ b/dev-python/pynput/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>dev@notyourcomputer.net</email>
+ <name>Shaoyu Tseng</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">pynput</remote-id>
+ <remote-id type="github">moses-palmer/pynput</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/pynput/pynput-1.8.2.ebuild b/dev-python/pynput/pynput-1.8.2.ebuild
new file mode 100644
index 000000000000..dd086917f0a1
--- /dev/null
+++ b/dev-python/pynput/pynput-1.8.2.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_{13..14} )
+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"
+)