Skip to contentSkip to conversation

python3-uinput: new package

PATCH In review Bartosz Golaszewski 2 participants 2 messages May 24, 2022 – May 25, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3-uinput: new package

Add a recipe for python3-uinput: a python module for controlling the virtual input devices on linux.

---
 .../packagegroups/packagegroup-meta-python.bb |  1 +
 ...-use-setuptools-instead-of-distutils.patch | 28 +++++++++++++++++++
 .../python/python3-uinput_0.11.2.bb           | 18 ++++++++++++
 3 files changed, 47 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-uinput/0001-setup-use-setuptools-instead-of-distutils.patch
 create mode 100644 meta-python/recipes-devtools/python/python3-uinput_0.11.2.bb
meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +1 -0
index 6ca652e12..e3ae050ec 100644
@@ -436,6 +436,7 @@ RDEPENDS:packagegroup-meta-python3 = "\
     python3-typeguard \
     python3-tzlocal \
     python3-u-msgpack-python \
+    python3-uinput \
     python3-ujson \
     python3-unidiff \
     python3-uritemplate \
meta-python/recipes-devtools/python/python3-uinput/0001-setup-use-setuptools-instead-of-distutils.patch new file +28 -0
new file mode 100644
index 000000000..54a3c1867
@@ -0,0 +1,28 @@
+From 7a4dde83a9584adb42c7f810d882b1fbf5767e2c Mon Sep 17 00:00:00 2001
+From: Bartosz Golaszewski <[email protected]>
+Date: Tue, 24 May 2022 21:43:35 +0200
+Subject: [PATCH] setup: use setuptools instead of distutils
+
+The latter is deprecated, use setuptools instead.
+
+Signed-off-by: Bartosz Golaszewski <[email protected]>
+---
+ setup.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index 3fa3343..4900b8b 100644
+--- a/setup.py
++++ b/setup.py
+@@ -3,7 +3,7 @@
+ import errno
+ import subprocess
+ 
+-from distutils.core import setup, Extension
++from setuptools import setup, Extension
+ 
+ libudev_so = "libudev.so.1"
+ 
+-- 
+2.34.1
+
meta-python/recipes-devtools/python/python3-uinput_0.11.2.bb new file +18 -0
new file mode 100644
index 000000000..737bbfe2c
@@ -0,0 +1,18 @@
+SUMMARY = "Python interface to Linux uinput kernel module."
+HOMEPAGE = "https://pypi.org/project/python-uinput/"
+LICENSE = "GPL-3.0-only"
+LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949"
+
+SRC_URI[sha256sum] = "99392b676c77b5795b86b7d75274db33fe754fd1e06fb3d58b167c797dc47f0c"
+SRC_URI += "file://0001-setup-use-setuptools-instead-of-distutils.patch"
+
+PYPI_PACKAGE = "python-uinput"
+
+inherit pypi setuptools3
+
+DEPENDS += "udev"
+RDEPENDS:${PN} += " \
+    python3-ctypes \
+    python3-distutils \
+"
+RRECOMMENDS:${PN} += "kernel-module-uinput"
Signature · 1 line
2.34.1
#1 lore raw
Quoted 37 lines · Bartosz Golaszewski

Add a recipe for python3-uinput: a python module for controlling the virtual input devices on linux.

---
 .../packagegroups/packagegroup-meta-python.bb |  1 +
 ...-use-setuptools-instead-of-distutils.patch | 28 +++++++++++++++++++
 .../python/python3-uinput_0.11.2.bb           | 18 ++++++++++++
 3 files changed, 47 insertions(+)
 create mode 100644
meta-python/recipes-devtools/python/python3-uinput/0001-setup-use-setuptools-instead-of-distutils.patch
 create mode 100644 meta-python/recipes-devtools/python/

python3-uinput_0.11.2.bb

(quoted diff) +0 -0

packagegroup-meta-python.bb b/meta-python/recipes-core/packagegroups/ packagegroup-meta-python.bb
index 6ca652e12..e3ae050ec 100644

meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +1 -0
@@ -436,6 +436,7 @@ RDEPENDS:packagegroup-meta-python3 = "\
     python3-typeguard \
     python3-tzlocal \
     python3-u-msgpack-python \
+    python3-uinput \
     python3-ujson \
     python3-unidiff \
     python3-uritemplate \

diff --git a/meta-python/recipes-devtools/python/python3-uinput/0001-setup-use-setuptools-instead-of-distutils.patch b/meta-python/recipes-devtools/python/python3-uinput/0001-setup-use-setuptools-instead-of-distutils.patch new file mode 100644
index 000000000..54a3c1867
--- /dev/null
+++
b/meta-python/recipes-devtools/python/python3-uinput/0001-setup-use-setuptools-instead-of-distutils.patch

meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb line 7

Quoted 7 lines
meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +7 -0
@@ -0,0 +1,28 @@
+From 7a4dde83a9584adb42c7f810d882b1fbf5767e2c Mon Sep 17 00:00:00 2001
+From: Bartosz Golaszewski <[email protected]>
+Date: Tue, 24 May 2022 21:43:35 +0200
+Subject: [PATCH] setup: use setuptools instead of distutils
+
+The latter is deprecated, use setuptools instead.
+

Missing Upstream-Status
Please submit upstream and add link to PR, etc.

Quoted 62 lines
meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +21 -0
+Signed-off-by: Bartosz Golaszewski <[email protected]>
+---
+ setup.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index 3fa3343..4900b8b 100644
+--- a/setup.py
++++ b/setup.py
+@@ -3,7 +3,7 @@
+ import errno
+ import subprocess
+
+-from distutils.core import setup, Extension
++from setuptools import setup, Extension
+
+ libudev_so = "libudev.so.1"
+
+--
+2.34.1
+
meta-python/recipes-devtools/python/python3-uinput_0.11.2.bb new file +6 -0
new file mode 100644
index 000000000..737bbfe2c
@@ -0,0 +1,18 @@
+SUMMARY = "Python interface to Linux uinput kernel module."
+HOMEPAGE = "https://pypi.org/project/python-uinput/"
+LICENSE = "GPL-3.0-only"
+LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949"
+
+SRC_URI[sha256sum] =

"99392b676c77b5795b86b7d75274db33fe754fd1e06fb3d58b167c797dc47f0c"

meta-python/recipes-devtools/python/python3-uinput_0.11.2.bb new file +12 -1
+SRC_URI += "file://0001-setup-use-setuptools-instead-of-distutils.patch"
+
+PYPI_PACKAGE = "python-uinput"
+
+inherit pypi setuptools3
+
+DEPENDS += "udev"
+RDEPENDS:${PN} += " \
+    python3-ctypes \
+    python3-distutils \
+"
+RRECOMMENDS:${PN} += "kernel-module-uinput"
--

2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#97262):
https://lists.openembedded.org/g/openembedded-devel/message/97262
Mute This Topic: https://lists.openembedded.org/mt/91319273/924729
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-