all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Brian Cully via Guix-patches via <guix-patches@gnu.org>
To: 60438@debbugs.gnu.org
Cc: Brian Cully <bjc@spork.org>
Subject: [bug#60438] [PATCH] gnu: Add python-pynput.
Date: Fri, 30 Dec 2022 16:44:04 -0500	[thread overview]
Message-ID: <fc18029bdfb53d8418b25dee26fc37faa2bd049e.1672436643.git.bjc@spork.org> (raw)

* 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





             reply	other threads:[~2022-12-30 21:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-30 21:44 Brian Cully via Guix-patches via [this message]
2023-04-06 18:54 ` [bug#60438] [PATCH] gnu: Add python-pynput Brian Cully via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fc18029bdfb53d8418b25dee26fc37faa2bd049e.1672436643.git.bjc@spork.org \
    --to=guix-patches@gnu.org \
    --cc=60438@debbugs.gnu.org \
    --cc=bjc@spork.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.