[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/14: gnu: python-rich: Build using poetry.
From: |
guix-commits |
Subject: |
08/14: gnu: python-rich: Build using poetry. |
Date: |
Fri, 7 Jan 2022 15:46:26 -0500 (EST) |
lbraun pushed a commit to branch wip-python-pep517
in repository guix.
commit 4bf91ce09e519052075e5b54d2fa30445729026b
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 63ba4e30c4..d184b69ad6 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -14585,33 +14585,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")
@@ -14619,7 +14594,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
- branch wip-python-pep517 updated (dd83a1b266 -> 09cced13c1), guix-commits, 2022/01/07
- 09/14: gnu: python-flake8-print: Add missing build input., guix-commits, 2022/01/07
- 03/14: gnu: python-carbon: Disable tests., guix-commits, 2022/01/07
- 05/14: gnu: python-tables: Move flags to #:configure-flags., guix-commits, 2022/01/07
- 10/14: gnu: python-unpaddedbase64: Build using poetry., guix-commits, 2022/01/07
- 06/14: gnu: python-capablerobot-usbhub: Build using python-poetry-core., guix-commits, 2022/01/07
- 11/14: gnu: python-yaspin: Add missing build input., guix-commits, 2022/01/07
- 01/14: gnu: python-tinycss2: Remove custom build process., guix-commits, 2022/01/07
- 14/14: gnu: python-clikit: Add missing build input., guix-commits, 2022/01/07
- 08/14: gnu: python-rich: Build using poetry.,
guix-commits <=
- 13/14: gnu: python-immutabledict: Add missing build input., guix-commits, 2022/01/07
- 02/14: gnu: python-sphinxcontrib-github-alt: Use flit-core to build., guix-commits, 2022/01/07
- 07/14: gnu: python-argcomplete: Add missing test input., guix-commits, 2022/01/07
- 04/14: gnu: python-gevent: Override build backend., guix-commits, 2022/01/07
- 12/14: gnu: python-typer: Add missing build input., guix-commits, 2022/01/07