mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: python-argcomplete: Update to 1.10.3.
Co-authored-by: pimi <madalinionel.patrascu@mdc-berlin.de> * gnu/packages/python-xyz.scm (python-argcomplete): Update to 1.10.3. [arguments]: Patch completion script to keep tool references. [inputs]: Add "grep" and "which". [native-inputs]: Add "python-coverage", "python-flake8", "python-wheel", and "fish".
This commit is contained in:
parent
b47e083b59
commit
98aecd3a5e
1 changed files with 31 additions and 9 deletions
|
@ -11768,19 +11768,41 @@ (define-public python-termstyle
|
||||||
(define-public python-argcomplete
|
(define-public python-argcomplete
|
||||||
(package
|
(package
|
||||||
(name "python-argcomplete")
|
(name "python-argcomplete")
|
||||||
(version "1.7.0")
|
(version "1.10.3")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "argcomplete" version))
|
(uri (pypi-uri "argcomplete" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"11bwiw6j0nilgz81xnw6f1npyga3prp8asjqrm87cdr3ria5l03x"))))
|
"02jkc44drb0yjz6x28lvg6rj607n8r2irdpdvyylm8xnycn54zx3"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'embed-tool-references
|
||||||
|
(lambda _
|
||||||
|
(substitute* "argcomplete/bash_completion.d/python-argcomplete.sh"
|
||||||
|
((" grep")
|
||||||
|
(string-append " " (which "grep")))
|
||||||
|
((" egrep")
|
||||||
|
(string-append " " (which "egrep")))
|
||||||
|
(("elif which")
|
||||||
|
(string-append "elif " (which "which")))
|
||||||
|
(("\\$\\(which")
|
||||||
|
(string-append "$(" (which "which"))))
|
||||||
|
#t)))))
|
||||||
|
(inputs
|
||||||
|
`(("grep" ,grep)
|
||||||
|
("which" ,which)))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-pexpect" ,python-pexpect)
|
`(("python-coverage" ,python-coverage)
|
||||||
|
("python-flake8" ,python-flake8)
|
||||||
|
("python-pexpect" ,python-pexpect)
|
||||||
|
("python-wheel" ,python-wheel)
|
||||||
("tcsh" ,tcsh)
|
("tcsh" ,tcsh)
|
||||||
("bash-full" ,bash))) ;full Bash for 'test_file_completion'
|
("fish" ,fish)
|
||||||
|
("bash-full" ,bash))) ;full Bash for 'test_file_completion'
|
||||||
(home-page "https://github.com/kislyuk/argcomplete")
|
(home-page "https://github.com/kislyuk/argcomplete")
|
||||||
(synopsis "Shell tab completion for Python argparse")
|
(synopsis "Shell tab completion for Python argparse")
|
||||||
(description "argcomplete provides extensible command line tab completion
|
(description "argcomplete provides extensible command line tab completion
|
||||||
|
|
Loading…
Reference in a new issue