gnu: python-git-review: Update to 2.5.0.

* gnu/packages/openstack.scm (python-git-review): Update to 2.5.0.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:phases>: Refresh them.
[native-inputs]: Add python-pbr, python-setuptools, python-wheel.
[inputs]: Replace git by git-minimal, openssh by openssh-sans-x.

Change-Id: If1e37a04b99c700274ce0a8d47922aa2c5249bc7
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-07-24 04:27:13 +02:00 committed by Sharlatan Hellseher
parent 7c9ea452b0
commit ff5484a774
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -1180,31 +1180,30 @@ permanence.")
(define-public python-git-review (define-public python-git-review
(package (package
(name "python-git-review") (name "python-git-review")
(version "2.1.0") (version "2.5.0")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "git-review" version)) (uri (pypi-uri "git_review" version))
(sha256 (sha256
(base32 "1mhywsbisyv028lsj2ksg4g5l8kyimpwxgwzqi08rymi8mb7fv1s")))) (base32 "1a7h3i1wsq0gsclb2mififypr9q0sz3ni0kf0qxmm2l40bpzmkqv"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
'(#:tests? #f ; tests require a running Gerrit server (list
#:tests? #f ; tests require a running Gerrit server
#:phases #:phases
(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'install 'wrap-program (add-after 'wrap 'wrap-program
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out")) (wrap-program (string-append #$output "/bin/git-review")
(git (assoc-ref inputs "git"))
(openssh (assoc-ref inputs "openssh")))
(wrap-program (string-append out "/bin/git-review")
`("PATH" ":" prefix `("PATH" ":" prefix
,(map (lambda (dir) ,(map (lambda (bin)
(string-append dir "/bin")) (search-input-file inputs
(list git openssh)))))))))) (string-append "bin/" bin)))
(native-inputs (list python-pbr)) (list "git" "ssh")))))))))
(native-inputs (list python-pbr python-setuptools python-wheel))
(propagated-inputs (list python-requests)) (propagated-inputs (list python-requests))
(inputs (list bash-minimal git openssh)) (inputs (list bash-minimal git-minimal openssh-sans-x))
(home-page "https://docs.openstack.org/infra/git-review/") (home-page "https://docs.openstack.org/infra/git-review/")
(synopsis "Command-line tool for Gerrit") (synopsis "Command-line tool for Gerrit")
(description (description