[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
116/166: gnu: python-send2trash: Update to 1.8.0 and update home page.
From: |
guix-commits |
Subject: |
116/166: gnu: python-send2trash: Update to 1.8.0 and update home page. |
Date: |
Tue, 19 Apr 2022 09:12:28 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython+polyglossia
in repository guix.
commit a56ec7e92e27bf1d3f8fe8d368ad378f26865804
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 17e28c9dad..fe883fccd3 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -22040,46 +22040,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")
- 107/166: gnu: python-ipyparallel: Update to 8.2.1., (continued)
- 107/166: gnu: python-ipyparallel: Update to 8.2.1., guix-commits, 2022/04/19
- 97/166: gnu: Add python-debugpy., guix-commits, 2022/04/19
- 134/166: gnu: Add python-httpcore-bootstrap., guix-commits, 2022/04/19
- 113/166: gnu: python-nbconvert: Update to 6.5.0., guix-commits, 2022/04/19
- 127/166: gnu: python-websockets: Update to 10.3 and enable tests., guix-commits, 2022/04/19
- 128/166: gnu: Add python-strict-rfc3339., guix-commits, 2022/04/19
- 130/166: gnu: Add python-openapi-schema-validator., guix-commits, 2022/04/19
- 104/166: gnu: python-jupyter-client: Update to 7.2.2., guix-commits, 2022/04/19
- 137/166: gnu: python-uvicorn: Update to 0.17.6., guix-commits, 2022/04/19
- 135/166: gnu: Add python-httpx-bootstrap., guix-commits, 2022/04/19
- 116/166: gnu: python-send2trash: Update to 1.8.0 and update home page.,
guix-commits <=
- 138/166: gnu: Add python-socksio., guix-commits, 2022/04/19
- 146/166: gnu: Add python-openapi-core., guix-commits, 2022/04/19
- 147/166: gnu: Add python-jupyterlab-server., guix-commits, 2022/04/19
- 149/166: gnu: python-numpy: Update to 1.21.6 and parallelize build/tests., guix-commits, 2022/04/19
- 144/166: gnu: python-falcon: Update to 3.1.0., guix-commits, 2022/04/19
- 141/166: gnu: Add python-pecan., guix-commits, 2022/04/19
- 148/166: gnu: python-hypothesis-6.23: Update to 6.43.3., guix-commits, 2022/04/19
- 143/166: gnu: python-fakeredis: Update to 1.7.1., guix-commits, 2022/04/19
- 151/166: gnu: python-numba: Update to 0.55.1., guix-commits, 2022/04/19
- 153/166: gnu: python-pandas: Update to 1.4.2., guix-commits, 2022/04/19