mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-15 07:27:48 -05:00
gnu: weasyprint: Use pyproject-build-system.
* gnu/packages/pdf.scm (weasyprint)[build-system]: Switch to PYPROJECT-BUILD-SYSTEM. [arguments]: Remove redundant phases. Add #:test-flags. [native-inputs]: Remove PYTHON-PYPA-BUILD.
This commit is contained in:
parent
4c8e0b3274
commit
df095a1813
1 changed files with 4 additions and 17 deletions
|
@ -1497,9 +1497,11 @@ (define-public weasyprint
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"08l0yaqg0rxnb2r3x4baf4wng5pxpjbyalnrl4glwh9l69740q7p"))))
|
"08l0yaqg0rxnb2r3x4baf4wng5pxpjbyalnrl4glwh9l69740q7p"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
|
#:test-flags #~(list "-vv" "-c" "/dev/null"
|
||||||
|
"-n" (number->string (parallel-job-count)))
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'patch-library-paths
|
(add-after 'unpack 'patch-library-paths
|
||||||
|
@ -1520,21 +1522,7 @@ (define-public weasyprint
|
||||||
(("'pangoft2-1.0-0'")
|
(("'pangoft2-1.0-0'")
|
||||||
(format #f "~s"
|
(format #f "~s"
|
||||||
(search-input-file inputs
|
(search-input-file inputs
|
||||||
"lib/libpangoft2-1.0.so"))))))
|
"lib/libpangoft2-1.0.so")))))))))
|
||||||
;; XXX: PEP 517 manual build copied from python-isort.
|
|
||||||
(replace 'build
|
|
||||||
(lambda _
|
|
||||||
(invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
|
|
||||||
(replace 'check
|
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
|
||||||
(when tests?
|
|
||||||
(invoke "pytest" "-vv" "-c" "/dev/null"
|
|
||||||
"-n" (number->string (parallel-job-count))))))
|
|
||||||
(replace 'install
|
|
||||||
(lambda _
|
|
||||||
(let ((whl (car (find-files "dist" "\\.whl$"))))
|
|
||||||
(invoke "pip" "--no-cache-dir" "--no-input"
|
|
||||||
"install" "--no-deps" "--prefix" #$output whl)))))))
|
|
||||||
(inputs (list fontconfig glib harfbuzz pango))
|
(inputs (list fontconfig glib harfbuzz pango))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list gdk-pixbuf
|
(list gdk-pixbuf
|
||||||
|
@ -1552,7 +1540,6 @@ (define-public weasyprint
|
||||||
(list font-dejavu ;tests depend on it
|
(list font-dejavu ;tests depend on it
|
||||||
ghostscript
|
ghostscript
|
||||||
python-flit-core
|
python-flit-core
|
||||||
python-pypa-build
|
|
||||||
python-pytest
|
python-pytest
|
||||||
python-pytest-xdist))
|
python-pytest-xdist))
|
||||||
(home-page "https://weasyprint.org/")
|
(home-page "https://weasyprint.org/")
|
||||||
|
|
Loading…
Reference in a new issue