From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58872) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egsSm-0001P0-6m for guix-patches@gnu.org; Wed, 31 Jan 2018 08:30:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1egsSg-0001qr-Dg for guix-patches@gnu.org; Wed, 31 Jan 2018 08:30:08 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:42495) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1egsSg-0001ql-9O for guix-patches@gnu.org; Wed, 31 Jan 2018 08:30:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1egsSg-0000OT-3U for guix-patches@gnu.org; Wed, 31 Jan 2018 08:30:02 -0500 Subject: [bug#30305] [PATCH] gnu: Add python-send2trash. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58701) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egsRw-000143-3S for guix-patches@gnu.org; Wed, 31 Jan 2018 08:29:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1egsRs-0000em-V0 for guix-patches@gnu.org; Wed, 31 Jan 2018 08:29:16 -0500 Received: from mail-lf0-x22e.google.com ([2a00:1450:4010:c07::22e]:39342) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1egsRs-0000e2-Mm for guix-patches@gnu.org; Wed, 31 Jan 2018 08:29:12 -0500 Received: by mail-lf0-x22e.google.com with SMTP id w27so20701285lfd.6 for ; Wed, 31 Jan 2018 05:29:12 -0800 (PST) Received: from magnolia (ppp91-122-178-74.pppoe.avangarddsl.ru. [91.122.178.74]) by smtp.gmail.com with ESMTPSA id f42sm3835999lfi.74.2018.01.31.05.29.10 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 31 Jan 2018 05:29:10 -0800 (PST) From: Oleg Pykhalov Date: Wed, 31 Jan 2018 16:28:37 +0300 Message-ID: <874ln2yx6i.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-Add-python-send2trash.patch Content-Description: [PATCH] gnu: Add python-send2trash. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 30305@debbugs.gnu.org >From 0e5058622c1291059fbf85b5949fb49cf0682dfd Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov 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