guix-commits
[Top][All Lists]
Advanced

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

109/150: gnu: python-rich: Build using poetry.


From: guix-commits
Subject: 109/150: gnu: python-rich: Build using poetry.
Date: Sun, 24 Apr 2022 05:12:30 -0400 (EDT)

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

commit 0877e6eb92ce091b67fda641c00bbf2210ad576e
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Fri Jan 7 13:51:47 2022 +0100

    gnu: python-rich: Build using poetry.
    
    * gnu/packages/python-xyz.scm (python-rich)[source]: Use git-fetch.
    [arguments]: Remove custom 'check phase.
    [native-inputs]: Add python-poetry-core, remove git-fetch origin for tests.
---
 gnu/packages/python-xyz.scm | 35 ++++++++---------------------------
 1 file changed, 8 insertions(+), 27 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index dab82c119f..f5cdb40739 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -15577,33 +15577,8 @@ is made as zipfile like as possible.")
   (package
     (name "python-rich")
     (version "10.2.2")
+    ;; PyPi tarball has no tests.
     (source (origin
-              (method url-fetch)
-              (uri (pypi-uri "rich" version))
-              (sha256
-               (base32
-                "1z5m5brcdf3vndpavcqj5nl35xby4x5rfj48klhwqycfqf3g9cqp"))))
-    (build-system python-build-system)
-    (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (replace 'check
-           (lambda* (#:key inputs tests? #:allow-other-keys)
-             (when tests?
-               (copy-recursively (string-append
-                                  (assoc-ref inputs "tests") "/tests")
-                                 "tests")
-               (invoke "python" "-m" "pytest" "-vv")))))))
-    (propagated-inputs
-     (list python-attrs python-colorama python-commonmark python-pygments
-           python-typing-extensions))
-    (native-inputs
-     `(("python-pytest" ,python-pytest)
-       ("tests"
-        ;; The release on pypi comes without tests.  We can't build from this
-        ;; checkout, though, because installation requires an invocation of
-        ;; poetry.
-        ,(origin
            (method git-fetch)
            (uri (git-reference
                  (url "https://github.com/willmcgugan/rich";)
@@ -15611,7 +15586,13 @@ is made as zipfile like as possible.")
            (file-name (git-file-name name version))
            (sha256
             (base32
-             "19f4svb363sn5708qkpa6lakmiwzyb25h8kmh7bqrsbbrvi9hr70"))))))
+             "19f4svb363sn5708qkpa6lakmiwzyb25h8kmh7bqrsbbrvi9hr70"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     (list python-attrs python-colorama python-commonmark python-pygments
+           python-typing-extensions))
+    (native-inputs
+     (list python-pytest python-poetry-core))
     (home-page "https://github.com/willmcgugan/rich";)
     (synopsis "Render rich text and more to the terminal")
     (description



reply via email to

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