From 5b5ea04775deb6bf1e96f6ad40aeadf2734de374 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Tue, 12 Aug 2025 18:19:15 +0200 Subject: [PATCH] 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 --- gnu/packages/python-xyz.scm | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index cb2d443fbb..c816154566 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -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