gnu: python-setuptools-git: Switch to pyproject.

* gnu/packages/python-xyz.scm (python-setuptools-git):
[build-system]: Switch to pyproject-build-system.
[arguments]: Improve style, use gexps.
[native-inputs]: Add python-setuptools, python-wheel.

Change-Id: I0d451dadfbbb3acdc7049833701bc1390221dcb2
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-08-12 18:19:15 +02:00 committed by Sharlatan Hellseher
parent fa46f86f81
commit 5b5ea04775
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -27985,21 +27985,20 @@ belong to tagged versions.")
(method url-fetch)
(uri (pypi-uri "setuptools-git" version))
(sha256
(base32
"0i84qjwp5m0l9qagdjww2frdh63r37km1c48mrvbmaqsl1ni6r7z"))))
(build-system python-build-system)
(base32 "0i84qjwp5m0l9qagdjww2frdh63r37km1c48mrvbmaqsl1ni6r7z"))))
(build-system pyproject-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
;; This is needed for tests.
(add-after 'unpack 'configure-git
(lambda _
(setenv "HOME" "/tmp")
(invoke "git" "config" "--global" "user.email" "guix")
(invoke "git" "config" "--global" "user.name" "guix")
#t)))))
(list
#:phases
#~(modify-phases %standard-phases
;; This is needed for tests.
(add-after 'unpack 'configure-git
(lambda _
(setenv "HOME" "/tmp")
(invoke "git" "config" "--global" "user.email" "guix")
(invoke "git" "config" "--global" "user.name" "guix"))))))
(native-inputs
`(("git" ,git-minimal)))
(list git-minimal python-setuptools python-wheel))
(home-page "https://github.com/msabramo/setuptools-git")
(synopsis "Setuptools revision control system plugin for Git")
(description