GNU bug report logs - #72600
[PATCH] gnu: Add python-pyclip.

Previous Next

Package: guix-patches;

Reported by: Evgeny Pisemsky <mail <at> pisemsky.site>

Date: Tue, 13 Aug 2024 07:26:02 UTC

Severity: normal

Tags: patch

Done: Sharlatan Hellseher <sharlatanus <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Sharlatan Hellseher <sharlatanus <at> gmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#72600: closed ([PATCH] gnu: Add python-pyclip.)
Date: Fri, 07 Feb 2025 16:35:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Fri, 07 Feb 2025 16:34:02 +0000
with message-id <878qqhyarp.fsf <at> gmail.com>
and subject line [PATCH] gnu: Add python-pyclip.
has caused the debbugs.gnu.org bug report #72600,
regarding [PATCH] gnu: Add python-pyclip.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
72600: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=72600
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Evgeny Pisemsky <mail <at> pisemsky.site>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: Add python-pyclip.
Date: Tue, 13 Aug 2024 10:25:08 +0300
[0001-gnu-Add-python-pyclip.patch (text/x-patch, inline)]
From f575d979c16791b438f7b51bddf3fc47886ac0aa Mon Sep 17 00:00:00 2001
Message-ID: <f575d979c16791b438f7b51bddf3fc47886ac0aa.1723533763.git.mail <at> pisemsky.site>
From: Evgeny Pisemsky <mail <at> pisemsky.site>
Date: Tue, 13 Aug 2024 10:20:40 +0300
Subject: [PATCH] gnu: Add python-pyclip.

* gnu/packages/xdisorg.scm (python-pyclip): New variable.

Change-Id: Ia0142bb8361e2c7120ea2539f393701aa93d00a9
---
 gnu/packages/xdisorg.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index 4c12835b24..4c6beac5d0 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -63,6 +63,7 @@
 ;;; Copyright © 2022 Mehmet Tekman <mtekman89 <at> gmail.com>
 ;;; Copyright © 2024 Artyom V. Poptsov <poptsov.artyom <at> gmail.com>
 ;;; Copyright © 2024 Igor Goryachev <igor <at> goryachev.org>
+;;; Copyright © 2024 Evgeny Pisemsky <mail <at> pisemsky.site>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -2556,6 +2557,34 @@ (define-public physlock
     (home-page "https://github.com/xyb3rt/physlock")
     (license license:gpl2+)))
 
+(define-public python-pyclip
+  (package
+    (name "python-pyclip")
+    (version "0.7.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "pyclip" version))
+       (sha256
+        (base32 "14940yi7cwz2vk7m8qf1jndk98s9ckg3sbylvjdp1ayfli3j0q2p"))
+       ;; Readme file is at top in pypi source.
+       (modules '((guix build utils)))
+       (snippet '(substitute* "setup.py"
+                   (("docs/README.md")
+                    "README.md")))))
+    (build-system python-build-system)
+    ;; No tests in pypi source.
+    (arguments
+     (list
+      #:tests? #f))
+    (propagated-inputs (list xclip wl-clipboard))
+    (home-page "https://github.com/spyoungtech/pyclip")
+    (synopsis "Cross-platform clipboard module for Python")
+    (description
+     "This library implements cross-platform clipboard utilities supporting
+both binary and text data.")
+    (license license:asl2.0)))
+
 (define-public python-pyperclip
   (package
     (name "python-pyperclip")

base-commit: 99a81b6f2a1386d6ea76a6ecb1942f1f7f891080
-- 
2.45.2



[Message part 4 (message/rfc822, inline)]
From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 72600-done <at> debbugs.gnu.org
Subject: [PATCH] gnu: Add python-pyclip.
Date: Fri, 07 Feb 2025 16:34:02 +0000
[Message part 5 (text/plain, inline)]

Hi,

I've applied some formating adjustemnt:

--8<---------------cut here---------------start------------->8---
@@ -2702,19 +2702,25 @@ (define-public python-pyclip
     (build-system pyproject-build-system)
     (arguments
      (list
-      #:phases #~(modify-phases %standard-phases
-                   (add-before 'check 'start-xorg-server
-                     (lambda _
-                       (system "Xvfb :1 &")
-                       (setenv "DISPLAY" ":1"))))))
-    (native-inputs (list python-setuptools python-wheel python-pytest
-                         xorg-server-for-tests))
-    (propagated-inputs (list xclip wl-clipboard))
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'check 'start-xorg-server
+            (lambda _
+              (system "Xvfb :1 &")
+              (setenv "DISPLAY" ":1"))))))
+    (native-inputs
+     (list python-pytest
+           python-setuptools
+           python-wheel
+           xorg-server-for-tests))
+    (propagated-inputs
+     (list wl-clipboard
+           xclip))
     (home-page "https://github.com/spyoungtech/pyclip")
     (synopsis "Cross-platform clipboard module for Python")
     (description
-     "This library implements cross-platform clipboard utilities supporting both
-binary and text data.")
+     "This library implements cross-platform clipboard utilities supporting
+both binary and text data.")
     (license license:asl2.0)))
--8<---------------cut here---------------end--------------->8---

Pushed to master as 2b9de7595002eda6ffe2dcffe48871f5ce83711b.

--
Oleg
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 105 days ago.

Previous Next


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