[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#30305] [PATCH] gnu: Add python-send2trash.
From: |
Oleg Pykhalov |
Subject: |
[bug#30305] [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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug#30305] [PATCH] gnu: Add python-send2trash.,
Oleg Pykhalov <=