From patchwork Tue Jan 2 15:05:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Gruber X-Patchwork-Id: 58321 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 27B9B27BBE9; Tue, 2 Jan 2024 15:07:39 +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,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 3631D27BBE2 for ; Tue, 2 Jan 2024 15:07:37 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rKgMA-0001KA-BV; Tue, 02 Jan 2024 10:07:02 -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 1rKgM8-0001Je-QU for guix-patches@gnu.org; Tue, 02 Jan 2024 10:07:00 -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 1rKgM8-0000Yv-II for guix-patches@gnu.org; Tue, 02 Jan 2024 10:07:00 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rKgMB-00070b-01 for guix-patches@gnu.org; Tue, 02 Jan 2024 10:07:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68207] [PATCH 4/5] gnu: python-rich: Update to 13.7.0. Resent-From: Felix Gruber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 02 Jan 2024 15:07:02 +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 Received: via spool by 68207-submit@debbugs.gnu.org id=B68207.170420799926876 (code B ref 68207); Tue, 02 Jan 2024 15:07:02 +0000 Received: (at 68207) by debbugs.gnu.org; 2 Jan 2024 15:06:39 +0000 Received: from localhost ([127.0.0.1]:51057 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rKgLm-0006zQ-Uk for submit@debbugs.gnu.org; Tue, 02 Jan 2024 10:06:39 -0500 Received: from mout01.posteo.de ([185.67.36.65]:56339) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rKgLk-0006yx-HI for 68207@debbugs.gnu.org; Tue, 02 Jan 2024 10:06:37 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 0277A240028 for <68207@debbugs.gnu.org>; Tue, 2 Jan 2024 16:06:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1704207988; bh=lAPF0Cpaq8uLHTYr63DZ1CPQ70PGcqRqgMCFBpvm4w0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=f122xXPsmHPuWHhxlZB9YfVLl9rgvj11/wNJShXKOjct5WZx+Nd+dPmwRCqtSMkCb eIRk3wjiXr5UuR/cZndKzKu+8bxRLh5qZwltiBKxI/yiLcB5i0dqhCzaolCYMwru2D BCWEtFFddDQOYKlqTHzjLsx10JUQfuwfWAND9yHtpE+ZFj5gwMVPp/pXKrPWC60biV P1ejVG74leUd8N8OrAS/zF8ZbD/gTSV5DfdXpirU31rlEGFZUEcZI0MqCr9QqEhrM7 uf36s3H69sL+hmV7fWKOUv6njBxyw07C+9dHL4NvP+ufsZW1cJ738vS46ZeW+bgBbN RoxNh0+Nn13mQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4T4GQW3L81z6tvJ; Tue, 2 Jan 2024 16:06:27 +0100 (CET) From: Felix Gruber Date: Tue, 2 Jan 2024 15:05:49 +0000 Message-ID: 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 d0a8f900b3..25f123e904 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -18360,42 +18360,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