gnu: gita: Update to 0.11.9.

* gnu/packages/version-control.scm (gita): Update to 0.11.9.
This commit is contained in:
Oleg Pykhalov 2020-12-23 21:53:33 +03:00
parent 4994e1f2bd
commit 5540159f3e
No known key found for this signature in database
GPG Key ID: 167F8EA5001AFA9C

View File

@ -2903,54 +2903,52 @@ defects faster.")
(license license:asl2.0))) (license license:asl2.0)))
(define-public gita (define-public gita
(let ((commit "62eb3d69874f75bdd6f95743e57315bc59890f70") (package
(revision "1")) (name "gita")
(package (version "0.11.9")
(name "gita") (source (origin
(version (git-version "0.10.10" revision commit)) (method git-fetch)
(source (origin (uri (git-reference
(method git-fetch) (url "https://github.com/nosarthur/gita")
(uri (git-reference (commit version)))
(url "https://github.com/nosarthur/gita") (file-name (git-file-name name version))
(commit commit))) (sha256
(file-name (git-file-name name version)) (base32
(sha256 "15hfr7zk41kqsnszlgddfhz717mw4bxqwsn0nvjwg53x1hnfxv7p"))))
(base32 (build-system python-build-system)
"1jn5wnmjbdrrgz9fif7s81pv3g92q0wjcqy5qxl77kjy7iv0kpfp")))) (native-inputs
(build-system python-build-system) `(("git" ,git) ;for tests
(native-inputs ("python-pytest" ,python-pytest)))
`(("git" ,git) ;for tests (propagated-inputs
("python-pytest" ,python-pytest))) `(("python-pyyaml" ,python-pyyaml)))
(propagated-inputs (arguments
`(("python-pyyaml" ,python-pyyaml))) `(#:phases
(arguments (modify-phases %standard-phases
`(#:phases (replace 'check
(modify-phases %standard-phases (lambda* (#:key inputs outputs #:allow-other-keys)
(replace 'check (substitute* "tests/test_main.py"
(lambda* (#:key inputs outputs #:allow-other-keys) (("'gita\\\\n'") "'source\\n'")
(substitute* "tests/test_main.py" (("'gita'") "'source'"))
(("'gita\\\\n'") "'source\\n'") (invoke (string-append (assoc-ref inputs "git") "/bin/git")
(("'gita'") "'source'")) "init")
(invoke (string-append (assoc-ref inputs "git") "/bin/git") (add-installed-pythonpath inputs outputs)
"init") (invoke (string-append (assoc-ref inputs "python-pytest")
(add-installed-pythonpath inputs outputs) "/bin/pytest")
(invoke (string-append (assoc-ref inputs "python-pytest") "-vv" "tests")))
"/bin/pytest") (add-after 'install 'install-shell-completions
"-vv" "tests"))) (lambda* (#:key outputs #:allow-other-keys)
(add-after 'install 'install-shell-completions (let* ((out (assoc-ref outputs "out"))
(lambda* (#:key outputs #:allow-other-keys) (bash-completion (string-append out "/etc/bash_completion.d"))
(let* ((out (assoc-ref outputs "out")) (zsh-completion (string-append out "/etc/zsh/site-functions")))
(bash-completion (string-append out "/etc/bash_completion.d")) (mkdir-p bash-completion)
(zsh-completion (string-append out "/etc/zsh/site-functions"))) (copy-file ".gita-completion.bash"
(mkdir-p bash-completion) (string-append bash-completion "/gita"))
(copy-file ".gita-completion.bash" (mkdir-p zsh-completion)
(string-append bash-completion "/gita")) (copy-file ".gita-completion.zsh"
(mkdir-p zsh-completion) (string-append zsh-completion "/_gita"))))))))
(copy-file ".gita-completion.zsh" (home-page "https://github.com/nosarthur/gita")
(string-append zsh-completion "/_gita")))))))) (synopsis "Command-line tool to manage multiple Git repos")
(home-page "https://github.com/nosarthur/gita") (description "This package provides a command-line tool to manage
(synopsis "Command-line tool to manage multiple Git repos")
(description "This package provides a command-line tool to manage
multiple Git repos. multiple Git repos.
This tool does two things: This tool does two things:
@ -2961,4 +2959,4 @@ commit message side by side
@end itemize @end itemize
If several repos are related, it helps to see their status together.") If several repos are related, it helps to see their status together.")
(license license:expat)))) (license license:expat)))