diff options
| author | Simon Streit <simon@netpanic.org> | 2025-02-16 14:00:42 +0100 |
|---|---|---|
| committer | Christopher Baines <mail@cbaines.net> | 2025-04-07 19:33:34 +0100 |
| commit | 3f69bfe87e3f0a0b3a6b5e1022faa6efd397b4e6 (patch) | |
| tree | 4addf4fa88d37238217fea218bce8c9733e1c34b /gnu | |
| parent | 9400baf08723b9c957e1bc734876ee74ce1ad379 (diff) | |
gnu: trash-cli: Update to 0.24.5.26.
* gnu/packages/shellutils.scm (trash-cli): Update to 0.24.5.26.
[native-inputs]: Add python-shtab. Sort.
Change-Id: I2f9ca7e2eb27657d8356c5cd3648c1e3a10cd0a8
Signed-off-by: Christopher Baines <mail@cbaines.net>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/shellutils.scm | 61 |
1 files changed, 25 insertions, 36 deletions
diff --git a/gnu/packages/shellutils.scm b/gnu/packages/shellutils.scm index 28c8af8685a..ea6dcafbc94 100644 --- a/gnu/packages/shellutils.scm +++ b/gnu/packages/shellutils.scm | |||
| @@ -645,7 +645,7 @@ between various shells or commands.") | |||
| 645 | (define-public trash-cli | 645 | (define-public trash-cli |
| 646 | (package | 646 | (package |
| 647 | (name "trash-cli") | 647 | (name "trash-cli") |
| 648 | (version "0.22.10.20") | 648 | (version "0.24.5.26") |
| 649 | (source | 649 | (source |
| 650 | (origin | 650 | (origin |
| 651 | (method git-fetch) | 651 | (method git-fetch) |
| @@ -654,44 +654,33 @@ between various shells or commands.") | |||
| 654 | (commit version))) | 654 | (commit version))) |
| 655 | (file-name (git-file-name name version)) | 655 | (file-name (git-file-name name version)) |
| 656 | (sha256 | 656 | (sha256 |
| 657 | (base32 | 657 | (base32 "1mqs3y9vbph33jsaa5hc0fhk80pklmsn8ylp979k9qj63fgqrnwn")))) |
| 658 | "0hkn0hmwrag56g447ddqapib0s399a6b4a9wlliif6zmirxlww9n")))) | ||
| 659 | (build-system python-build-system) | 658 | (build-system python-build-system) |
| 660 | (arguments | 659 | (arguments |
| 661 | (list #:phases | 660 | (list |
| 662 | #~(modify-phases %standard-phases | 661 | #:phases #~(modify-phases %standard-phases |
| 663 | (add-before 'build 'patch-path-constants | 662 | (add-before 'build 'fix-setup.py |
| 664 | (lambda* (#:key inputs #:allow-other-keys) | 663 | (lambda* (#:key outputs #:allow-other-keys) |
| 665 | (let ((libc (search-input-file inputs "lib/libc.so.6")) | 664 | (let ((bin (string-append #$output "/bin"))) |
| 666 | (df #$(file-append coreutils "/bin/df"))) | 665 | (mkdir-p bin) |
| 667 | (substitute* "trashcli/list_mount_points.py" | 666 | (substitute* "setup.py" |
| 668 | (("\"/lib/libc.so.6\".*") | 667 | (("add_script\\('") |
| 669 | (string-append "\"" libc "\"\n")) | 668 | (string-append "add_script('" bin "/")))))) |
| 670 | (("\"df\"") | 669 | ;; Whenever setup.py is invoked, scripts in out/bin/ are |
| 671 | (string-append "\"" df "\"")))))) | 670 | ;; replaced. Thus we cannot invoke setup.py for testing. |
| 672 | (add-before 'build 'fix-setup.py | 671 | ;; Upstream also uses pytest. |
| 673 | (lambda* (#:key outputs #:allow-other-keys) | 672 | (replace 'check |
| 674 | (let ((bin (string-append #$output "/bin"))) | 673 | (lambda* (#:key tests? #:allow-other-keys) |
| 675 | (mkdir-p bin) | 674 | (when tests? |
| 676 | (substitute* "setup.py" | 675 | (invoke "pytest"))))))) |
| 677 | (("add_script\\('") | 676 | (native-inputs (list python-flexmock |
| 678 | (string-append "add_script('" bin "/" )))))) | 677 | python-mock |
| 679 | ;; Whenever setup.py is invoked, scripts in out/bin/ are | 678 | python-parameterized |
| 680 | ;; replaced. Thus we cannot invoke setup.py for testing. | 679 | python-pytest |
| 681 | ;; Upstream also uses pytest. | 680 | python-shtab |
| 682 | (replace 'check | 681 | python-six)) |
| 683 | (lambda* (#:key tests? #:allow-other-keys) | ||
| 684 | (when tests? | ||
| 685 | (invoke "pytest"))))))) | ||
| 686 | (native-inputs | ||
| 687 | (list python-pytest | ||
| 688 | python-parameterized | ||
| 689 | python-flexmock | ||
| 690 | python-mock | ||
| 691 | python-six)) | ||
| 692 | (inputs (list coreutils)) | 682 | (inputs (list coreutils)) |
| 693 | (propagated-inputs | 683 | (propagated-inputs (list python-psutil)) |
| 694 | (list python-psutil)) | ||
| 695 | (home-page "https://github.com/andreafrancia/trash-cli") | 684 | (home-page "https://github.com/andreafrancia/trash-cli") |
| 696 | (synopsis "Trash can management tool") | 685 | (synopsis "Trash can management tool") |
| 697 | (description | 686 | (description |
