guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit d40d5402bd6bf7ec75839f44755a2c0dd4b7cef6
Author: Nicolas Graves <[email protected]>
AuthorDate: Thu Jan 29 14:10:05 2026 +0100
gnu: python-sip-4: Improve style and switch to pyproject.
* gnu/packages/qt.scm (python-sip-4):
[arguments]: Improve style,
<#:imported-modules, #:modules>: Switch to pyproject-build-system.
<#:phases>: Rewrite phase 'configure tpo use gexps and site-packages.
[native-inputs, propagated-inputs]: Relocate fields, improve style.
Change-Id: Ib6d2842cb4cbe343b72ca7673319715ab637533f
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/qt.scm | 59 ++++++++++++++++++++++-------------------------------
1 file changed, 24 insertions(+), 35 deletions(-)
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index ae79a0eee9..67051d4293 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -4448,43 +4448,32 @@ module provides support functions to the automatically
generated code.")
(sha256
(base32 "04a23cgsnx150xq86w1z44b6vr2zyazysy9mqax0fy346zlr77dk"))))
(build-system gnu-build-system)
- (native-inputs `(("python" ,python-wrapper)))
- (propagated-inputs `())
(arguments
- `(#:tests? #f ;no check target
- #:imported-modules ((guix build python-build-system)
- ,@%default-gnu-imported-modules)
- #:modules ((srfi srfi-1)
- ((guix build python-build-system)
- #:select (python-version))
+ (list
+ #:tests? #f ;no check target
+ #:imported-modules %pyproject-build-system-modules
+ #:modules `((srfi srfi-1)
+ ((guix build pyproject-build-system) #:prefix py:)
,@%default-gnu-modules)
- #:phases (modify-phases %standard-phases
- (add-after 'unpack 'substitute
- (lambda _
- (substitute* "siplib/siplib.c"
- ;; Replaces the internal data-structure usage
- ;; that was removed in python 3.11 with the
- ;; new official API call so the code will compile
- ;; with python > 3.11
- (("frame->f_back")
- "PyFrame_GetBack(frame)"))))
- (replace 'configure
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (bin (string-append out "/bin"))
- (include (string-append out "/include"))
- (python (assoc-ref inputs "python"))
- (lib (string-append out "/lib/python"
- (python-version python)
- "/site-packages")))
- (invoke "python"
- "configure.py"
- "--bindir"
- bin
- "--destdir"
- lib
- "--incdir"
- include)))))))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'substitute
+ (lambda _
+ (substitute* "siplib/siplib.c"
+ ;; Replaces the internal data-structure usage
+ ;; that was removed in python 3.11 with the
+ ;; new official API call so the code will compile
+ ;; with python > 3.11
+ (("frame->f_back")
+ "PyFrame_GetBack(frame)"))))
+ (replace 'configure
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (invoke "python" "configure.py"
+ "--bindir" (string-append #$output "/bin")
+ "--destdir" (py:site-packages inputs outputs)
+ "--incdir" (string-append #$output "/include")))))))
+ (native-inputs (list python-wrapper))
+ (propagated-inputs (list))
(license license:gpl3)))
(define-public python-pyqt