all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#64662] [PATCH] gnu: python-pyperclip: Improve Wayland support.
@ 2023-07-16  8:11 Hilton Chain via Guix-patches via
  0 siblings, 0 replies; only message in thread
From: Hilton Chain via Guix-patches via @ 2023-07-16  8:11 UTC (permalink / raw)
  To: 64662; +Cc: Hilton Chain

* gnu/packages/xdisorg.scm (python-pyperclip)[snippet]: Adjust the source to
test $WAYLAND_DISPLAY as well.
---
 gnu/packages/xdisorg.scm | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index 1f7539764c..abe577edd6 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -2361,6 +2361,15 @@ (define-public python-pyperclip
       (origin
         (method url-fetch)
         (uri (pypi-uri "pyperclip" version))
+        (modules '((guix build utils)))
+        (snippet
+         ;; XXX: Pyperclip's Linux detection currently only relies on $DISPLAY,
+         ;; which may not be set in a Wayland session.
+         ;; <https://github.com/asweigart/pyperclip/issues/220>
+         ;; <https://github.com/asweigart/pyperclip/pull/201>
+         '(substitute* "src/pyperclip/__init__.py"
+            (("^HAS_DISPLAY = os\\.getenv\\(\"DISPLAY\", False\\)" line)
+             (string-append line " or os.getenv(\"WAYLAND_DISPLAY\", False)"))))
         (sha256
          (base32
           "0mxzm43z2anr55gyz7awagvam4d5c2rlxhp9hjyg0d29n2l58lhh"))))

base-commit: 093e9204183790558921c968034c547b41ebef3a
-- 
2.41.0





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-07-16  8:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-16  8:11 [bug#64662] [PATCH] gnu: python-pyperclip: Improve Wayland support Hilton Chain via Guix-patches via

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.