mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-23 19:19:20 -05:00
gnu: python-pyqtwebengine: Use 'python-version'.
* gnu/packages/qt.scm (python-pyqtwebengine)[arguments]: Add (guix build python-build-system) to #:modules. Adjust #:imported-modules accordingly. Rewrite #:phases to use it instead of rolling their own, or hard-coding.
This commit is contained in:
parent
fbfaba8a7c
commit
67950de7e8
1 changed files with 7 additions and 7 deletions
|
@ -2040,7 +2040,10 @@ (define-public python-pyqtwebengine
|
|||
("qtwebengine" ,qtwebengine)))
|
||||
(arguments
|
||||
`(#:modules ((srfi srfi-1)
|
||||
((guix build python-build-system) #:select (python-version))
|
||||
,@%gnu-build-system-modules)
|
||||
#:imported-modules ((guix build python-build-system)
|
||||
,@%gnu-build-system-modules)
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(replace 'configure
|
||||
|
@ -2050,13 +2053,8 @@ (define-public python-pyqtwebengine
|
|||
(pyqt-sipdir (string-append
|
||||
(assoc-ref inputs "python-pyqt") "/share/sip"))
|
||||
(python (assoc-ref inputs "python"))
|
||||
(python-version
|
||||
(last (string-split python #\-)))
|
||||
(python-major+minor
|
||||
(string-join
|
||||
(take (string-split python-version #\.) 2) "."))
|
||||
(lib (string-append out "/lib/python"
|
||||
python-major+minor
|
||||
(python-version python)
|
||||
"/site-packages/PyQt5"))
|
||||
(stubs (string-append lib "/PyQt5")))
|
||||
|
||||
|
@ -2075,7 +2073,9 @@ (define-public python-pyqtwebengine
|
|||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
(let* ((__init__.py (string-append
|
||||
(assoc-ref outputs "out")
|
||||
"/lib/python3.7/site-packages/PyQt5/__init__.py")))
|
||||
"/lib/python"
|
||||
(python-version (assoc-ref inputs "python"))
|
||||
"/site-packages/PyQt5/__init__.py")))
|
||||
(with-output-to-file __init__.py
|
||||
(lambda _ (display "
|
||||
from pkgutil import extend_path
|
||||
|
|
Loading…
Reference in a new issue