diff options
| author | Brice Waegeneire <brice@waegenei.re> | 2021-08-28 09:40:55 +0200 |
|---|---|---|
| committer | Brice Waegeneire <brice@waegenei.re> | 2022-01-18 08:55:07 +0100 |
| commit | 39510d5a5e4e0e38cd3d3bc944d5bf6d96242493 (patch) | |
| tree | d09035ae4bc17b7aa80740e4cc96511caa31ed8b /gnu/packages/shellutils.scm | |
| parent | 87fe15c51936a318958490abbb5fc4ee6192c4c2 (diff) | |
gnu: trash-cli: Update to 0.21.10.24.
* gnu/packages/shellutils.scm (trash-cli): Update to 0.21.10.24.
[source]: Use github repository instead of pypi.
[arguments]<python>: Use python 3.
<tests>: Enable tests.
<phases>: Add "fix-setup.py" phase.
[native-inputs]: Add python-pytest, python-mock and python-six.
[propagated-inputs]: Add python-psutil.
Diffstat (limited to 'gnu/packages/shellutils.scm')
| -rw-r--r-- | gnu/packages/shellutils.scm | 33 |
1 files changed, 25 insertions, 8 deletions
diff --git a/gnu/packages/shellutils.scm b/gnu/packages/shellutils.scm index 2fe70ffee5f..9171acef995 100644 --- a/gnu/packages/shellutils.scm +++ b/gnu/packages/shellutils.scm | |||
| @@ -42,6 +42,7 @@ | |||
| 42 | #:use-module (gnu packages autotools) | 42 | #:use-module (gnu packages autotools) |
| 43 | #:use-module (gnu packages base) | 43 | #:use-module (gnu packages base) |
| 44 | #:use-module (gnu packages bison) | 44 | #:use-module (gnu packages bison) |
| 45 | #:use-module (gnu packages check) | ||
| 45 | #:use-module (gnu packages flex) | 46 | #:use-module (gnu packages flex) |
| 46 | #:use-module (gnu packages golang) | 47 | #:use-module (gnu packages golang) |
| 47 | #:use-module (gnu packages libunistring) | 48 | #:use-module (gnu packages libunistring) |
| @@ -49,6 +50,7 @@ | |||
| 49 | #:use-module (gnu packages pcre) | 50 | #:use-module (gnu packages pcre) |
| 50 | #:use-module (gnu packages pkg-config) | 51 | #:use-module (gnu packages pkg-config) |
| 51 | #:use-module (gnu packages python) | 52 | #:use-module (gnu packages python) |
| 53 | #:use-module (gnu packages python-xyz) | ||
| 52 | #:use-module (gnu packages readline) | 54 | #:use-module (gnu packages readline) |
| 53 | #:use-module (gnu packages ruby) | 55 | #:use-module (gnu packages ruby) |
| 54 | #:use-module (gnu packages shells) | 56 | #:use-module (gnu packages shells) |
| @@ -307,19 +309,20 @@ between various shells or commands.") | |||
| 307 | (define-public trash-cli | 309 | (define-public trash-cli |
| 308 | (package | 310 | (package |
| 309 | (name "trash-cli") | 311 | (name "trash-cli") |
| 310 | (version "0.17.1.14") | 312 | (version "0.21.10.24") |
| 311 | (source | 313 | (source |
| 312 | (origin | 314 | (origin |
| 313 | (method url-fetch) | 315 | (method git-fetch) |
| 314 | (uri (pypi-uri "trash-cli" version)) | 316 | (uri (git-reference |
| 317 | (url "https://github.com/andreafrancia/trash-cli") | ||
| 318 | (commit version))) | ||
| 319 | (file-name (git-file-name name version)) | ||
| 315 | (sha256 | 320 | (sha256 |
| 316 | (base32 | 321 | (base32 |
| 317 | "01q0cl04ljf214z6s3g256gsxx3pqsgaf6ac1zh0vrq5bnhnr85h")))) | 322 | "01is32lk6prwhajvlmgn3xs4fcpmiqivizcqkj9k80jx6mqjifzs")))) |
| 318 | (build-system python-build-system) | 323 | (build-system python-build-system) |
| 319 | (arguments | 324 | (arguments |
| 320 | `(#:python ,python-2 | 325 | `(#:phases |
| 321 | #:tests? #f ; no tests | ||
| 322 | #:phases | ||
| 323 | (modify-phases %standard-phases | 326 | (modify-phases %standard-phases |
| 324 | (add-before 'build 'patch-path-constants | 327 | (add-before 'build 'patch-path-constants |
| 325 | (lambda* (#:key inputs #:allow-other-keys) | 328 | (lambda* (#:key inputs #:allow-other-keys) |
| @@ -329,8 +332,22 @@ between various shells or commands.") | |||
| 329 | (("\"/lib/libc.so.6\".*") | 332 | (("\"/lib/libc.so.6\".*") |
| 330 | (string-append "\"" libc "/lib/libc.so.6\"\n")) | 333 | (string-append "\"" libc "/lib/libc.so.6\"\n")) |
| 331 | (("\"df\"") | 334 | (("\"df\"") |
| 332 | (string-append "\"" coreutils "/bin/df\""))))))))) | 335 | (string-append "\"" coreutils "/bin/df\"")))))) |
| 336 | (add-before 'build 'fix-setup.py | ||
| 337 | (lambda* (#:key outputs #:allow-other-keys) | ||
| 338 | (let* ((out (assoc-ref outputs "out")) | ||
| 339 | (bin (string-append out "/bin"))) | ||
| 340 | (mkdir-p bin) | ||
| 341 | (substitute* "setup.py" | ||
| 342 | (("add_script\\('") | ||
| 343 | (string-append "add_script('" bin "/" ))))))))) | ||
| 344 | (native-inputs | ||
| 345 | (list python-pytest | ||
| 346 | python-mock | ||
| 347 | python-six)) | ||
| 333 | (inputs (list coreutils)) | 348 | (inputs (list coreutils)) |
| 349 | (propagated-inputs | ||
| 350 | (list python-psutil)) | ||
| 334 | (home-page "https://github.com/andreafrancia/trash-cli") | 351 | (home-page "https://github.com/andreafrancia/trash-cli") |
| 335 | (synopsis "Trash can management tool") | 352 | (synopsis "Trash can management tool") |
| 336 | (description | 353 | (description |
