guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

13/23: gnu: python-ufolib2: Use pyproject-build-system.


From: guix-commits
Subject: 13/23: gnu: python-ufolib2: Use pyproject-build-system.
Date: Thu, 27 Oct 2022 13:47:12 -0400 (EDT)

mbakke pushed a commit to branch master
in repository guix.

commit eecc807ea4c8ea6735c42375fd2f859b56f0d338
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Mon Oct 17 21:12:16 2022 +0200

    gnu: python-ufolib2: Use pyproject-build-system.
    
    * gnu/packages/fontutils.scm (python-ufolib2)[build-system]: Switch to
    PYPROJECT-BUILD-SYSTEM.
    [arguments]: Remove.
    [native-inputs]: Remove PYTHON-PYPA-BUILD and PYTHON-WHEEL.
---
 gnu/packages/fontutils.scm | 26 ++------------------------
 1 file changed, 2 insertions(+), 24 deletions(-)

diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
index f7f9ac3505..df3774e977 100644
--- a/gnu/packages/fontutils.scm
+++ b/gnu/packages/fontutils.scm
@@ -1615,31 +1615,9 @@ with @samp{nameIDs}.")
        (uri (pypi-uri "ufoLib2" version))
        (sha256
         (base32 "0yx4i8q5rfyqhr2fj70a7z1bp1jv7bdlr64ww9z4nv9ycbda4x9j"))))
-    (build-system python-build-system)
-    (arguments
-     (list
-      #:phases
-      #~(modify-phases %standard-phases
-          ;; XXX: PEP 517 manual build copied from python-isort.
-          (replace 'build
-            (lambda _
-              ;; ZIP does not support timestamps before 1980.
-              (setenv "SOURCE_DATE_EPOCH" "315532800")
-              (invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
-          (replace 'check
-            (lambda* (#:key tests? #:allow-other-keys)
-              (when tests?
-                (invoke "pytest" "-vv"))))
-          (replace 'install
-            (lambda _
-              (let ((whl (car (find-files "dist" "\\.whl$"))))
-                (invoke "pip" "--no-cache-dir" "--no-input"
-                        "install" "--no-deps" "--prefix" #$output whl)))))))
+    (build-system pyproject-build-system)
     (native-inputs
-     (list python-pypa-build
-           python-pytest
-           python-setuptools-scm
-           python-wheel))
+     (list python-pytest python-setuptools-scm))
     (propagated-inputs (list python-attrs python-fonttools-full))
     (home-page "https://github.com/fonttools/ufoLib2";)
     (synopsis "Unified Font Object (UFO) font processing library")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]