unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#30305] [PATCH] gnu: Add python-send2trash.
@ 2018-01-31 13:28 Oleg Pykhalov
  2018-02-06 15:24 ` Ludovic Courtès
  2018-06-22 19:47 ` [bug#30305] " Gábor Boskovits
  0 siblings, 2 replies; 7+ messages in thread
From: Oleg Pykhalov @ 2018-01-31 13:28 UTC (permalink / raw)
  To: 30305

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: [PATCH] gnu: Add python-send2trash. --]
[-- Type: text/x-patch, Size: 1708 bytes --]

From 0e5058622c1291059fbf85b5949fb49cf0682dfd Mon Sep 17 00:00:00 2001
From: Oleg Pykhalov <go.wigust@gmail.com>
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

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-06-23 16:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-31 13:28 [bug#30305] [PATCH] gnu: Add python-send2trash Oleg Pykhalov
2018-02-06 15:24 ` Ludovic Courtès
2018-02-09 20:21   ` Oleg Pykhalov
2018-02-09 22:03     ` Ludovic Courtès
2018-02-10  8:46       ` Oleg Pykhalov
2018-06-22 19:47 ` [bug#30305] " Gábor Boskovits
2018-06-23 16:52   ` bug#30305: " Oleg Pykhalov

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).