--- 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.
signature.asc
Description: PGP signature
--- End Message ---