[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/23: gnu: weasyprint: Use pyproject-build-system.
From: |
guix-commits |
Subject: |
10/23: gnu: weasyprint: Use pyproject-build-system. |
Date: |
Thu, 27 Oct 2022 13:47:11 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit df095a181390d45797459bc91d389f27179cbe2c
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Mon Oct 17 21:06:14 2022 +0200
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.
---
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 9e809a8382..95cc3b1e22 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -1497,9 +1497,11 @@ manipulating PDF documents from the command line. It
supports
(sha256
(base32
"08l0yaqg0rxnb2r3x4baf4wng5pxpjbyalnrl4glwh9l69740q7p"))))
- (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 @@ manipulating PDF documents from the command line. It
supports
(("'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 @@ manipulating PDF documents from the command line. It
supports
(list font-dejavu ;tests depend on it
ghostscript
python-flit-core
- python-pypa-build
python-pytest
python-pytest-xdist))
(home-page "https://weasyprint.org/")
- branch master updated (176a501360 -> f928abac36), guix-commits, 2022/10/27
- 02/23: gnu: Zabbix: Update to 6.0.9., guix-commits, 2022/10/27
- 01/23: gnu: zabbix-agentd: Enable TLS support., guix-commits, 2022/10/27
- 03/23: gnu: python-setuptools: Move to python-build., guix-commits, 2022/10/27
- 10/23: gnu: weasyprint: Use pyproject-build-system.,
guix-commits <=
- 13/23: gnu: python-ufolib2: Use pyproject-build-system., guix-commits, 2022/10/27
- 05/23: gnu: python-pip: Move to (gnu packages python-build)., guix-commits, 2022/10/27
- 08/23: gnu: python-autopage: Use pyproject-build-system., guix-commits, 2022/10/27
- 11/23: gnu: python-glyphslib: Use pyproject-build-system., guix-commits, 2022/10/27
- 17/23: gnu: zabbix-cli: Switch to pyproject-build-system., guix-commits, 2022/10/27
- 20/23: gnu: python-path: Use pyproject-build-system., guix-commits, 2022/10/27
- 09/23: gnu: python-pydyf: Use pyproject-build-system., guix-commits, 2022/10/27
- 04/23: gnu: pypy: Move to separate module., guix-commits, 2022/10/27
- 06/23: build-system: Add pyproject-build-system., guix-commits, 2022/10/27
- 12/23: gnu: python-statmake: Use pyproject-build-system., guix-commits, 2022/10/27