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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 72600 in the body.
You can then email your comments to 72600 AT debbugs.gnu.org in the normal way.

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#72600; Package guix-patches. (Tue, 13 Aug 2024 07:26:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Evgeny Pisemsky <mail <at> pisemsky.site>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Tue, 13 Aug 2024 07:26:02 GMT) Full text and rfc822 format available.

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

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





Information forwarded to guix-patches <at> gnu.org:
bug#72600; Package guix-patches. (Sun, 19 Jan 2025 18:00:03 GMT) Full text and rfc822 format available.

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

From: Evgeny Pisemsky <mail <at> pisemsky.site>
To: 72600 <at> debbugs.gnu.org
Subject: [PATCH] gnu: Add python-pyclip.
Date: Sun, 19 Jan 2025 20:59:47 +0300
[Message part 1 (text/plain, inline)]
Improved package with tests enabled.

[0001-gnu-Add-python-pyclip.patch (text/x-patch, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#72600; Package guix-patches. (Sun, 26 Jan 2025 15:57:01 GMT) Full text and rfc822 format available.

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

From: Evgeny Pisemsky <mail <at> pisemsky.site>
To: 72600 <at> debbugs.gnu.org
Cc: Evgeny Pisemsky <mail <at> pisemsky.site>
Subject: [PATCH v3] gnu: Add python-pyclip.
Date: Sun, 26 Jan 2025 18:55:20 +0300
* gnu/packages/xdisorg.scm (python-pyclip): New variable.

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

diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index eadb30fab2..eda2f6e718 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -66,6 +66,7 @@
 ;;; Copyright © 2024 Ashish SHUKLA <ashish.is <at> lostca.se>
 ;;; Copyright © 2024 Spencer Peters <spencerpeters <at> protonmail.com>
 ;;; Copyright © 2024 Jakob Kirsch <jakob.kirsch <at> web.de>
+;;; Copyright © 2025 Evgeny Pisemsky <mail <at> pisemsky.site>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -90,6 +91,7 @@ (define-module (gnu packages xdisorg)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system meson)
   #:use-module (guix build-system python)
+  #:use-module (guix build-system pyproject)
   #:use-module (guix build-system scons)
   #:use-module (guix download)
   #:use-module (guix gexp)
@@ -148,6 +150,7 @@ (define-module (gnu packages xdisorg)
   #:use-module (gnu packages python-xyz)
   #:use-module (gnu packages python-web)
   #:use-module (gnu packages python-check)
+  #:use-module (gnu packages python-build)
   #:use-module (gnu packages qt)
   #:use-module (gnu packages sphinx)
   #:use-module (gnu packages tex)
@@ -2683,6 +2686,37 @@ (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 git-fetch)
+       (uri (git-reference
+             (url "https://github.com/spyoungtech/pyclip")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "10q698snlid09jmlvsqlljj2r0w6cixncjcgbhnjqp7w0hva8wyj"))))
+    (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))
+    (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: a895cc4c5bdb5d4bf8383077ef587ac18d069d7d
-- 
2.47.1





Information forwarded to guix-patches <at> gnu.org:
bug#72600; Package guix-patches. (Wed, 05 Feb 2025 18:01:02 GMT) Full text and rfc822 format available.

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

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 72600 <at> debbugs.gnu.org
Subject: [PATCH] gnu: Add python-pyclip.
Date: Wed, 05 Feb 2025 18:00:31 +0000
[Message part 1 (text/plain, inline)]
Hi,

--8<---------------cut here---------------start------------->8---
+    ;; No tests in pypi source.
+    (arguments
+     (list
+      #:tests? #f))
--8<---------------cut here---------------end--------------->8---
Git has tests https://github.com/spyoungtech/pyclip/tree/main/tests, may
you convet to git checkout variant and try to enable tests please?

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

Information forwarded to guix-patches <at> gnu.org:
bug#72600; Package guix-patches. (Thu, 06 Feb 2025 16:25:01 GMT) Full text and rfc822 format available.

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

From: Evgeny Pisemsky <mail <at> pisemsky.site>
To: Sharlatan Hellseher <sharlatanus <at> gmail.com>
Cc: 72600 <at> debbugs.gnu.org
Subject: Re: [PATCH] gnu: Add python-pyclip.
Date: Thu, 06 Feb 2025 19:24:44 +0300
Hi, I've already enabled tests in the latest patch version:

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=72600#11




Reply sent to Sharlatan Hellseher <sharlatanus <at> gmail.com>:
You have taken responsibility. (Fri, 07 Feb 2025 16:35:02 GMT) Full text and rfc822 format available.

Notification sent to Evgeny Pisemsky <mail <at> pisemsky.site>:
bug acknowledged by developer. (Fri, 07 Feb 2025 16:35:02 GMT) Full text and rfc822 format available.

Message #22 received at 72600-done <at> debbugs.gnu.org (full text, mbox):

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 1 (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)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 08 Mar 2025 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 104 days ago.

Previous Next


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