guix-commits
[Top][All Lists]
Advanced

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

102/150: gnu: python-tinycss2: Remove custom build process.


From: guix-commits
Subject: 102/150: gnu: python-tinycss2: Remove custom build process.
Date: Sun, 24 Apr 2022 05:12:29 -0400 (EDT)

lbraun pushed a commit to branch wip-python-pep517
in repository guix.

commit f51d9e900e91df0ccac995eb3a616088aa954b80
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Fri Jan 7 11:35:56 2022 +0100

    gnu: python-tinycss2: Remove custom build process.
    
    * gnu/packages/python-web.scm (python-tinycss2)[arguments]: Remove custom
     #:phases, add #:build-backend to override pyproject.toml.
    [native-inputs]: Replace python-flit with python-flit-core.
---
 gnu/packages/python-web.scm | 27 ++-------------------------
 1 file changed, 2 insertions(+), 25 deletions(-)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 6da766fe6b..443ddf2dc7 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -4586,34 +4586,11 @@ modules:
        (sha256
         (base32 "0zyc48vbmczpqj7f3f0d7zb3bz29fyj50dg0m6bbwbr5i88kq3sq"))))
     (build-system python-build-system)
-    (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (replace 'build
-           (lambda _
-             ;; A ZIP archive should be generated, but it fails with "ZIP does
-             ;; not support timestamps before 1980".  Luckily,
-             ;; SOURCE_DATE_EPOCH is respected, which we set to some time in
-             ;; 1980.
-             (setenv "SOURCE_DATE_EPOCH" "315532800")
-             (invoke "flit" "build")))
-         (replace 'install
-           (lambda* (#:key inputs outputs #:allow-other-keys)
-             (add-installed-pythonpath inputs outputs)
-             (let ((out (assoc-ref outputs "out")))
-               (for-each (lambda (wheel)
-                           (format #true wheel)
-                           (invoke "python" "-m" "pip" "install"
-                                   wheel (string-append "--prefix=" out)))
-                         (find-files "dist" "\\.whl$")))))
-         (replace 'check
-           (lambda* (#:key inputs outputs tests? #:allow-other-keys)
-             (add-installed-pythonpath inputs outputs)
-             (invoke "pytest" "-vv"))))))
+    (arguments '(#:build-backend "flit_core.buildapi"))
     (propagated-inputs
      (list python-webencodings))
     (native-inputs
-     (list python-flit python-pytest python-pytest-cov
+     (list python-flit-core python-pytest python-pytest-cov
            python-pytest-flake8 python-pytest-isort))
     (home-page "https://tinycss2.readthedocs.io/";)
     (synopsis "Low-level CSS parser for Python")



reply via email to

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