mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-sip-4: Make compatible with python 3.11.
The package used an internal python API that was removed in python 3.11, causing a compiler error. This commit replaces the internal call with the official replacement API. * gnu/packages/qt.scm (python-sip-4): Make compatible with python@3.11. Change-Id: Ifbf888bcdaab314cb7ec5a5908656cbb1b2a52d2 Signed-off-by: Andreas Enge <andreas@enge.fr>
This commit is contained in:
parent
3f925cf6ce
commit
cd29c06f91
1 changed files with 42 additions and 28 deletions
|
@ -4126,24 +4126,34 @@ module provides support functions to the automatically generated code.")
|
|||
(method url-fetch)
|
||||
(uri (list (pypi-uri "sip" version)
|
||||
(string-append "https://www.riverbankcomputing.com/static/"
|
||||
"Downloads/sip/" version
|
||||
"/sip-" version ".tar.gz")))
|
||||
"Downloads/sip/"
|
||||
version
|
||||
"/sip-"
|
||||
version
|
||||
".tar.gz")))
|
||||
(sha256
|
||||
(base32
|
||||
"04a23cgsnx150xq86w1z44b6vr2zyazysy9mqax0fy346zlr77dk"))))
|
||||
(base32 "04a23cgsnx150xq86w1z44b6vr2zyazysy9mqax0fy346zlr77dk"))))
|
||||
(build-system gnu-build-system)
|
||||
(native-inputs
|
||||
`(("python" ,python-wrapper)))
|
||||
(native-inputs `(("python" ,python-wrapper)))
|
||||
(propagated-inputs `())
|
||||
(arguments
|
||||
`(#:tests? #f ; no check target
|
||||
`(#: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))
|
||||
((guix build python-build-system)
|
||||
#:select (python-version))
|
||||
,@%default-gnu-modules)
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
#: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"))
|
||||
|
@ -4153,10 +4163,14 @@ module provides support functions to the automatically generated code.")
|
|||
(lib (string-append out "/lib/python"
|
||||
(python-version python)
|
||||
"/site-packages")))
|
||||
(invoke "python" "configure.py"
|
||||
"--bindir" bin
|
||||
"--destdir" lib
|
||||
"--incdir" include)))))))
|
||||
(invoke "python"
|
||||
"configure.py"
|
||||
"--bindir"
|
||||
bin
|
||||
"--destdir"
|
||||
lib
|
||||
"--incdir"
|
||||
include)))))))
|
||||
(license license:gpl3)))
|
||||
|
||||
(define-public python-pyqt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue