emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#30305: closed ([PATCH] gnu: Add python-send2trash.


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#30305: closed ([PATCH] gnu: Add python-send2trash.)
Date: Sat, 23 Jun 2018 16:53:02 +0000

Your message dated Sat, 23 Jun 2018 19:52:18 +0300
with message-id <address@hidden>
and subject line Re: [bug#30305] gnu: Add python-send2trash.
has caused the debbugs.gnu.org bug report #30305,
regarding [PATCH] gnu: Add python-send2trash.
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
30305: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=30305
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: [PATCH] gnu: Add python-send2trash. Date: Wed, 31 Jan 2018 16:28:37 +0300
>From 0e5058622c1291059fbf85b5949fb49cf0682dfd Mon Sep 17 00:00:00 2001
From: Oleg Pykhalov <address@hidden>
Date: Wed, 31 Jan 2018 16:27:33 +0300
Subject: [PATCH] gnu: Add python-send2trash.

* gnu/packages/python.scm (python-send2trash): New public variable.
---
 gnu/packages/python.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 94551da33..67c9a7665 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -12395,6 +12395,33 @@ and works only with Python 2 and NumPy < 1.9.")
 (define-public python2-phonenumbers
   (package-with-python2 python-phonenumbers))
 
+(define-public python-send2trash
+  (package
+    (name "python-send2trash")
+    (version "1.4.2")
+    (source
+     (origin (method url-fetch)
+             ;; Source tarball on PyPI doesn't include tests.
+             (uri (string-append "https://github.com/hsoft/send2trash/archive/";
+                                 version ".tar.gz"))
+             (sha256
+              (base32
+               "0ffyhwjyx61slkdy38iwjc4gmj7fj9gs2q58f075gwvq630pzm9z"))))
+    (build-system python-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (add-before 'check 'pre-check
+           (lambda _
+             (mkdir-p "/tmp/foo")
+             (setenv "HOME" "/tmp/foo")
+             #t)))))
+    (home-page "https://github.com/hsoft/send2trash";)
+    (synopsis "Send file to trash")
+    (description
+     "This package provides a Python library to send files to trash.")
+    (license license:bsd-3)))
+
 (define-public python-yapf
   (package
     (name "python-yapf")
-- 
2.15.1




--- End Message ---
--- Begin Message --- Subject: Re: [bug#30305] gnu: Add python-send2trash. Date: Sat, 23 Jun 2018 19:52:18 +0300 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Hello Gábor,

Gábor Boskovits <address@hidden> writes:

> This look like a good candidate for inclusion to guix 0.15.0. Could you
> send an updated patch, or push it with the proposed modifications?

Pushed as 02e2d18297c9352d5f12abe128a82e579d9be278

Thanks,
Oleg.

Attachment: signature.asc
Description: PGP signature


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]