guix-commits
[Top][All Lists]
Advanced

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

17/150: gnu: python-testpath: Remove custom build phases.


From: guix-commits
Subject: 17/150: gnu: python-testpath: Remove custom build phases.
Date: Sun, 24 Apr 2022 05:12:16 -0400 (EDT)

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

commit 2d800a693bf6f353327fe744da6fa0f7f3fa4f7e
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Thu Nov 25 13:24:31 2021 +0100

    gnu: python-testpath: Remove custom build phases.
    
    python-build-system supports PEP 517 now.
    
    * gnu/packages/check.scm (python-testpath)[#:phases]: Remove.
    [arguments]: Add #:build-backend.
    [native-inputs]: Add pytest.
---
 gnu/packages/check.scm | 28 ++++------------------------
 1 file changed, 4 insertions(+), 24 deletions(-)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index c0eadbad4b..a74672b269 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -1936,31 +1936,11 @@ C/C++, R, and more, and uploads it to the 
@code{codecov.io} service.")
         (base32
          "08r1c6bhvj8pcdvzkqv1950k36a6q3v81fd2p1yqdq3c07mcwgif"))))
     (build-system python-build-system)
-    (arguments
-     (list
-      #:phases
-      #~(modify-phases %standard-phases
-          (add-after 'unpack 'relax-requirements
-            (lambda _
-              (substitute* "pyproject.toml"
-                (("flit_core >=3.2.0,<3.3")
-                 "flit_core >=3.2.0"))))
-          ;; 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"))))
-          (replace 'install
-            (lambda _
-              (let ((whl (car (find-files "dist" "\\.whl$"))))
-                (invoke "pip" "--no-cache-dir" "--no-input"
-                        "install" "--no-deps" "--prefix" #$output whl)))))))
+    ;; pyproject.toml uses wrong package.
+    (arguments `(#:build-backend "flit_core.buildapi"))
     (native-inputs
-     (list python-pypa-build python-flit-core python-pytest))
-    (home-page "https://github.com/jupyter/testpath";)
+     (list python-flit-core python-pytest))
+    (home-page "https://github.com/takluyver/testpath";)
     (synopsis "Test utilities for code working with files and commands")
     (description
      "Testpath is a collection of utilities for Python code working with files



reply via email to

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