[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
116/242: gnu: python-send2trash: Update to 1.8.0 and update home page.
From: |
guix-commits |
Subject: |
116/242: gnu: python-send2trash: Update to 1.8.0 and update home page. |
Date: |
Thu, 12 May 2022 14:14:16 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 1e76c82ca6c59b96210ed72726ec9c9179db409d
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Wed Apr 13 21:35:02 2022 -0400
gnu: python-send2trash: Update to 1.8.0 and update home page.
* gnu/packages/python-xyz.scm (python-send2trash): Update to 1.8.0.
[source]: Update Git URL.
[phases]{pre-check}: Set HOME to /tmp directly.
{check}: Override phase.
[native-inputs]: Add python-pytest.
[properties]: Delete field.
(python2-send2trash): Delete variable.
[home-page]: Update URL.
---
gnu/packages/python-xyz.scm | 31 ++++++++++---------------------
1 file changed, 10 insertions(+), 21 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 8d82b2e5d0..2bcb51a651 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -22100,46 +22100,35 @@ systems policies.")
(define-public python-send2trash
(package
(name "python-send2trash")
- (version "1.5.0")
+ (version "1.8.0")
(source
(origin (method git-fetch)
;; Source tarball on PyPI doesn't include tests.
(uri (git-reference
- (url "https://github.com/hsoft/send2trash")
+ (url "https://github.com/arsenetar/send2trash")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
- "1c76zldhw2ay7q7r00nnzcampjz9lkqfcbzqpm0iqp5i6bmmv30v"))))
+ "1k7dfypaaq4f36fbciaasv72j6wgjihw8d88axmz9c329bz8v5qx"))))
(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")
+ (setenv "HOME" "/tmp")))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv")))))))
+ (native-inputs (list python-pytest))
+ (home-page "https://github.com/arsenetar/send2trash")
(synopsis "Send files to the user's @file{~/Trash} directory")
(description "This package provides a Python library to send files to the
user's @file{~/Trash} directory.")
- (properties `((python2-variant . ,(delay python2-send2trash))))
(license license:bsd-3)))
-(define-public python2-send2trash
- (let ((base (package-with-python2
- (strip-python2-variant python-send2trash))))
- (package/inherit base
- (arguments
- (substitute-keyword-arguments (package-arguments python-send2trash)
- ((#:phases phases)
- `(modify-phases ,phases
- (add-before 'check 'setenv
- (lambda _
- (setenv "GUIX_PYTHONPATH"
- (string-append (getcwd) ":" (getenv
"GUIX_PYTHONPATH"))))))))))))
-
(define-public python-pyfavicon
(package
(name "python-pyfavicon")
- 105/242: gnu: python-ipykernel: Update to 6.13.0., (continued)
- 105/242: gnu: python-ipykernel: Update to 6.13.0., guix-commits, 2022/05/12
- 89/242: gnu: Add font-gfs-ambrosia., guix-commits, 2022/05/12
- 93/242: gnu: python-black: Update to 22.3.0., guix-commits, 2022/05/12
- 90/242: gnu: python-click: Update to 8.1.2 and honor TESTS?., guix-commits, 2022/05/12
- 78/242: gnu: Add python-afdko., guix-commits, 2022/05/12
- 101/242: gnu: Add python-ipyparallel-bootstrap., guix-commits, 2022/05/12
- 83/242: gnu: Add python-compreffor., guix-commits, 2022/05/12
- 106/242: gnu: Add python-pytest-tornado., guix-commits, 2022/05/12
- 91/242: gnu: python-flask: Update to 2.1.1., guix-commits, 2022/05/12
- 120/242: gnu: python-sphinx: Propagate TexLive dependencies., guix-commits, 2022/05/12
- 116/242: gnu: python-send2trash: Update to 1.8.0 and update home page.,
guix-commits <=
- 122/242: gnu: Add python-sphinx-theme-builder., guix-commits, 2022/05/12
- 126/242: gnu: Add texlive-cbfonts-fd., guix-commits, 2022/05/12
- 135/242: gnu: Add python-rfc3339-validator., guix-commits, 2022/05/12
- 125/242: gnu: texlive-polyglossia: Rename and fix package., guix-commits, 2022/05/12
- 130/242: gnu: Add texlive-cm-lgc., guix-commits, 2022/05/12
- 137/242: gnu: Add python-openapi-spec-validator., guix-commits, 2022/05/12
- 139/242: gnu: python-httpcore: Update to 0.14.7 and enable tests., guix-commits, 2022/05/12
- 140/242: gnu: Add python-httpcore-bootstrap., guix-commits, 2022/05/12
- 141/242: gnu: Add python-httpx-bootstrap., guix-commits, 2022/05/12
- 143/242: gnu: python-uvicorn: Update to 0.17.6., guix-commits, 2022/05/12