From patchwork Mon Feb 12 17:55:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Gruber X-Patchwork-Id: 60212 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 0DEA227BBE9; Mon, 12 Feb 2024 18:00:29 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 7596827BBE2 for ; Mon, 12 Feb 2024 18:00:25 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rZaau-0002Ge-As; Mon, 12 Feb 2024 12:59:52 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rZaat-0002G9-69 for guix-patches@gnu.org; Mon, 12 Feb 2024 12:59:51 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rZaas-0005LQ-U3; Mon, 12 Feb 2024 12:59:50 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rZab5-0006Bu-Ex; Mon, 12 Feb 2024 13:00:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68207] [PATCH v2 4/5] gnu: python-rich: Update to 13.7.0. Resent-From: Felix Gruber Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, marius@gnu.org, me@bonfacemunyoki.com, sharlatanus@gmail.com, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Mon, 12 Feb 2024 18:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68207 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68207@debbugs.gnu.org Cc: Felix Gruber , Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , jgart X-Debbugs-Original-Xcc: Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , jgart Received: via spool by 68207-submit@debbugs.gnu.org id=B68207.170776078323649 (code B ref 68207); Mon, 12 Feb 2024 18:00:03 +0000 Received: (at 68207) by debbugs.gnu.org; 12 Feb 2024 17:59:43 +0000 Received: from localhost ([127.0.0.1]:46056 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZaal-00069L-1a for submit@debbugs.gnu.org; Mon, 12 Feb 2024 12:59:43 -0500 Received: from mout01.posteo.de ([185.67.36.65]:50727) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZaai-00068W-Q0 for 68207@debbugs.gnu.org; Mon, 12 Feb 2024 12:59:41 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 35D05240029 for <68207@debbugs.gnu.org>; Mon, 12 Feb 2024 18:59:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1707760758; bh=3Qy4qKQgE2MEMnHz9592+5FiWzr4ePrWYTKyzVk3Z+k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=exKmDm0M6ipMeLlnMVOSTuTKIM/el4ZaY4lO236PZ08Mf3C0wjulHAl9d9bfwqgPe FjM+p+WKVXy2DZ/QvRfZgjmn8UbA5xym2Agmj6Vsqmk5PYQohSSYLoy99CcQFtWF7x 3ka5uutK4cYnh7315K2wSoAVJTNmZTMh3djY1ZDqi9y9/kS97axXxPtxeQdbYAs6a/ dNxzSeaZ/Re0sFy+X5CXLmv+Mjph2253g9ZqfTqGNOy2Zh5rgwgVTEFV/hDre7h7Ik 7VlzDkujT5yMbVS+otdwoOqt4slH0jwLyWDRIIbo1DacwuuIfVnxSEnG8SW5ImfjUX ox2Jdc47uUtsw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TYXK15Pmqz6tvq; Mon, 12 Feb 2024 18:59:17 +0100 (CET) From: Felix Gruber Date: Mon, 12 Feb 2024 17:55:29 +0000 Message-ID: <79d48325bffd9be3265645d9805ace6801235376.1707760530.git.felgru@posteo.net> In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-rich): Update to 13.7.0. [source]: Use git-fetch since pypi package doesn't include tests. [build-system]: Use pyproject-build-system. [arguments]: Remove custom 'check phase. [propagated-inputs]: Remove python-attrs, python-colorama, python-commonmark and python-typingextensions; add python-ipywidgets and python-markdown-it-py; replace python-pygments with python-pygments-next. [native-inputs]: Add python-poetry-core; remove tests (which are now included in new [source]). Change-Id: I15f7928fc376d8c2556ca2965fe44453bd15f248 --- gnu/packages/python-xyz.scm | 49 ++++++++++++------------------------- 1 file changed, 15 insertions(+), 34 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index b3eed56d06..afd5caf541 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -19192,42 +19192,23 @@ (define-public python-slugid (define-public python-rich (package (name "python-rich") - (version "12.4.1") - (source (origin - (method url-fetch) - (uri (pypi-uri "rich" version)) - (sha256 - (base32 - "149vjb4cpf9mz14iig0b6d8065dm8aslp6pc45g9ipmp1wf00ffj")))) - (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"))))))) + (version "13.7.0") + (source + (origin + ;; There are no tests in the PyPI tarball. + (method git-fetch) + (uri (git-reference + (url "https://github.com/willmcgugan/rich") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0qyhw2vvk17qdmfrmi45z4dd0fkwx3l2qrf3iy0yc2y7pfgrmg9g")))) + (build-system pyproject-build-system) (propagated-inputs - (list python-attrs python-colorama python-commonmark python-pygments - python-typing-extensions)) + (list python-ipywidgets python-markdown-it-py python-pygments-next)) (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") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "17c3gljn8zv32xnpsgd3fqgqn4r7cdfqri41hridcpbhssdgkyp9")))))) + (list python-poetry-core python-pytest)) (home-page "https://github.com/willmcgugan/rich") (synopsis "Render rich text and more to the terminal") (description