guix-commits
[Top][All Lists]
Advanced

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

12/96: gnu: python-typing-extensions: Use pyproject-build-system.


From: guix-commits
Subject: 12/96: gnu: python-typing-extensions: Use pyproject-build-system.
Date: Wed, 19 Apr 2023 21:41:05 -0400 (EDT)

apteryx pushed a commit to branch core-updates
in repository guix.

commit d37747beda04dd900ed83a5d65ccb31118089ac3
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sat Apr 15 23:25:33 2023 -0400

    gnu: python-typing-extensions: Use pyproject-build-system.
    
    * gnu/packages/python-xyz.scm (python-typing-extensions)
    [arguments]: Remove #:phases argument.
    [native-inputs]: Remove python-pypa-build.
---
 gnu/packages/python-xyz.scm | 24 ++++--------------------
 1 file changed, 4 insertions(+), 20 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index f39c09b950..bc3b27d22b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -22655,26 +22655,10 @@ with PEP 484 argument (and return) type annotations.")
               (sha256
                (base32
                 "19n4l57qazwrbvxjrbxw2vvfyd0zbk8ivnwm4zmwfzzl69x6glp6"))))
-    (build-system python-build-system)
-    (arguments
-     (list
-      #:tests? #f       ;requires Python's test module, not available in Guix
-      #:phases
-      #~(modify-phases %standard-phases
-          ;; 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 "python" "src/test_typing_extensions.py"))))
-          (replace 'install
-            (lambda _
-              (let ((whl (car (find-files "dist" "\\.whl$"))))
-                (invoke "pip" "--no-cache-dir" "--no-input"
-                        "install" "--no-deps" "--prefix" #$output whl)))))))
-    (native-inputs (list python-pypa-build python-flit-core))
+    (build-system pyproject-build-system)
+    ;; The test suite requires Python's test module, not available in Guix.
+    (arguments (list #:tests? #f))
+    (native-inputs (list python-flit-core))
     (home-page "https://github.com/python/typing/typing_extensions";)
     (synopsis "Experimental type hints for Python")
     (description



reply via email to

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