[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#58587] [PATCH v3 09/22] gnu: weasyprint: Use pyproject-build-system
From: |
Marius Bakke |
Subject: |
[bug#58587] [PATCH v3 09/22] gnu: weasyprint: Use pyproject-build-system. |
Date: |
Sun, 23 Oct 2022 00:20:47 +0200 |
* 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.
---
gnu/packages/pdf.scm | 21 ++++-----------------
1 file changed, 4 insertions(+), 17 deletions(-)
diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index ec75bca6e3..8c871e4341 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -1497,9 +1497,11 @@ (define-public weasyprint
(sha256
(base32
"0cn8gpgyic6pmrnhp0540nbgplpsd5aybi7k89anz6m1sshgjzgs"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
(list
+ #:test-flags #~(list "-vv" "-c" "/dev/null"
+ "-n" (number->string (parallel-job-count)))
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'patch-library-paths
@@ -1520,21 +1522,7 @@ (define-public weasyprint
(("'pangoft2-1.0-0'")
(format #f "~s"
(search-input-file inputs
- "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)))))))
+ "lib/libpangoft2-1.0.so")))))))))
(inputs (list fontconfig glib harfbuzz pango))
(propagated-inputs
(list gdk-pixbuf
@@ -1552,7 +1540,6 @@ (define-public weasyprint
(list font-dejavu ;tests depend on it
ghostscript
python-flit-core
- python-pypa-build
python-pytest
python-pytest-xdist))
(home-page "https://weasyprint.org/")
--
2.38.0
- [bug#58587] [PATCH 00/14] Introducing pyproject-build-system., (continued)
- [bug#58587] [PATCH 00/14] Introducing pyproject-build-system., Marius Bakke, 2022/10/19
- [bug#58587] [PATCH 00/14] Introducing pyproject-build-system., Marius Bakke, 2022/10/19
- [bug#58587] [PATCH 00/14] Introducing pyproject-build-system., zimoun, 2022/10/20
- [bug#58587] [PATCH 00/14] Introducing pyproject-build-system., Marius Bakke, 2022/10/22
- [bug#58587] [PATCH v2 01/22] gnu: python-setuptools: Move to python-build., Marius Bakke, 2022/10/22
- [bug#58587] [PATCH v2 02/22] gnu: pypy: Move to separate module., Marius Bakke, 2022/10/22
- [bug#58587] [PATCH v2 03/22] gnu: python-pip: Move to (gnu packages python-build)., Marius Bakke, 2022/10/22
- [bug#58587] [PATCH v2 04/22] build-system: Add pyproject-build-system., Marius Bakke, 2022/10/22
- [bug#58587] [PATCH v2 05/22] news: Add entry for 'pyproject-build-system'., Marius Bakke, 2022/10/22
- [bug#58587] [PATCH v3 01/22] gnu: python-setuptools: Move to python-build., Marius Bakke, 2022/10/22
- [bug#58587] [PATCH v3 09/22] gnu: weasyprint: Use pyproject-build-system.,
Marius Bakke <=
- [bug#58587] [PATCH v3 08/22] gnu: python-pydyf: Use pyproject-build-system., Marius Bakke, 2022/10/22
- [bug#58587] [PATCH v3 05/22] news: Add entry for 'pyproject-build-system'., Marius Bakke, 2022/10/22
- [bug#58587] [PATCH v3 05/22] news: Add entry for 'pyproject-build-system'., pelzflorian (Florian Pelz), 2022/10/24
- [bug#58587] [PATCH v3 05/22] news: Add entry for 'pyproject-build-system'., Julien Lepiller, 2022/10/24
- [bug#58587] [PATCH v3 04/22] build-system: Add pyproject-build-system., Marius Bakke, 2022/10/22
- [bug#58587] [PATCH v3 02/22] gnu: pypy: Move to separate module., Marius Bakke, 2022/10/22
- [bug#58587] [PATCH v3 03/22] gnu: python-pip: Move to (gnu packages python-build)., Marius Bakke, 2022/10/22
- [bug#58587] [PATCH v3 10/22] gnu: python-glyphslib: Use pyproject-build-system., Marius Bakke, 2022/10/22
- [bug#58587] [PATCH v3 06/22] gnu: python-autopage: Use pyproject-build-system., Marius Bakke, 2022/10/22
- [bug#58587] [PATCH v3 07/22] gnu: flair: Switch to pyproject-build-system., Marius Bakke, 2022/10/22