me
/
guix
Archived
1
0
Fork 0

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.
master
Maxim Cournoyer 2022-04-13 21:35:02 -04:00
parent d72c53fa43
commit 1e76c82ca6
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 10 additions and 21 deletions

View File

@ -22100,46 +22100,35 @@ systems policies.")
(define-public python-send2trash (define-public python-send2trash
(package (package
(name "python-send2trash") (name "python-send2trash")
(version "1.5.0") (version "1.8.0")
(source (source
(origin (method git-fetch) (origin (method git-fetch)
;; Source tarball on PyPI doesn't include tests. ;; Source tarball on PyPI doesn't include tests.
(uri (git-reference (uri (git-reference
(url "https://github.com/hsoft/send2trash") (url "https://github.com/arsenetar/send2trash")
(commit version))) (commit version)))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1c76zldhw2ay7q7r00nnzcampjz9lkqfcbzqpm0iqp5i6bmmv30v")))) "1k7dfypaaq4f36fbciaasv72j6wgjihw8d88axmz9c329bz8v5qx"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
'(#:phases '(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-before 'check 'pre-check (add-before 'check 'pre-check
(lambda _ (lambda _
(mkdir-p "/tmp/foo") (setenv "HOME" "/tmp")))
(setenv "HOME" "/tmp/foo") (replace 'check
#t))))) (lambda* (#:key tests? #:allow-other-keys)
(home-page "https://github.com/hsoft/send2trash") (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") (synopsis "Send files to the user's @file{~/Trash} directory")
(description "This package provides a Python library to send files to the (description "This package provides a Python library to send files to the
user's @file{~/Trash} directory.") user's @file{~/Trash} directory.")
(properties `((python2-variant . ,(delay python2-send2trash))))
(license license:bsd-3))) (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 (define-public python-pyfavicon
(package (package
(name "python-pyfavicon") (name "python-pyfavicon")