GNU bug report logs - #60438
[PATCH] gnu: Add python-pynput.

Previous Next

Package: guix-patches;

Reported by: Brian Cully <bjc <at> spork.org>

Date: Fri, 30 Dec 2022 21:47:02 UTC

Severity: normal

Tags: patch

To reply to this bug, email your comments to 60438 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#60438; Package guix-patches. (Fri, 30 Dec 2022 21:47:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Brian Cully <bjc <at> spork.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 30 Dec 2022 21:47:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Brian Cully <bjc <at> spork.org>
To: guix-patches <at> gnu.org
Cc: Brian Cully <bjc <at> spork.org>
Subject: [PATCH] gnu: Add python-pynput.
Date: Fri, 30 Dec 2022 16:44:04 -0500
* gnu/packages/python-xyz.scm: (python-pynput) New variable.
---
This patch requires `python-setuptookls-lint', which is in patch#60436.
 gnu/packages/python-xyz.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 2b28e8bd53..d2623bc32d 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -27734,6 +27734,32 @@ (define-public python-rnc2rng
 equivalent schemata in the XML-based default RELAX NG syntax.")
     (license license:expat)))
 
+(define-public python-pynput
+  (package
+    (name "python-pynput")
+    (version "1.7.6")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "pynput" version))
+              (sha256
+               (base32
+                "0g2k5swxhmn65z9fhlwfsbhpr6anvfqkhpbqhyv1chd5dma2cmrs"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:tests? #f ;pypi tarball doesn't have tests included.
+       #:phases (modify-phases %standard-phases
+                  (add-before 'sanity-check 'start-xserver
+                    (lambda* (#:key inputs #:allow-other-keys)
+                      (system (format #f "~a :1 &"
+                                      (search-input-file inputs "/bin/Xvfb")))
+                      (setenv "DISPLAY" ":1") #t)))))
+    (propagated-inputs (list python-six python-evdev python-xlib))
+    (native-inputs (list python-setuptools-lint python-sphinx xorg-server))
+    (home-page "https://github.com/moses-palmer/pynput")
+    (synopsis "Monitor and control user input devices")
+    (description "Monitor and control user input devices")
+    (license license:lgpl3)))
+
 (define-public python-telethon
   (package
     (name "python-telethon")
-- 
2.38.1





Information forwarded to guix-patches <at> gnu.org:
bug#60438; Package guix-patches. (Thu, 06 Apr 2023 18:55:02 GMT) Full text and rfc822 format available.

Message #8 received at 60438 <at> debbugs.gnu.org (full text, mbox):

From: Brian Cully <bjc <at> spork.org>
To: 60438 <at> debbugs.gnu.org
Subject: Re: bug#60438: [PATCH] gnu: Add python-pynput.
Date: Thu, 06 Apr 2023 14:54:20 -0400
Can someone please take a look at this patch? I've been using it for
months, by way of ‘python-streamdeck-ui’, which requires it, and it
still applies cleanly to master.




This bug report was last modified 1 year and 19 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.