From patchwork Tue May 17 03:03:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Deslauriers, Douglas via Guix-patches\" via" X-Patchwork-Id: 39431 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 536A627BBEA; Tue, 17 May 2022 04:04:24 +0100 (BST) 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 CEA3127BBE9 for ; Tue, 17 May 2022 04:04:23 +0100 (BST) Received: from localhost ([::1]:34828 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nqnVX-0005iY-0v for patchwork@mira.cbaines.net; Mon, 16 May 2022 23:04:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57626) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqnVC-0005cN-Uj for guix-patches@gnu.org; Mon, 16 May 2022 23:04:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33371) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nqnVC-0007ku-Ls for guix-patches@gnu.org; Mon, 16 May 2022 23:04:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nqnVC-0002AV-Cy for guix-patches@gnu.org; Mon, 16 May 2022 23:04:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55472] Update python-tldr Resent-From: kiasoc5@disroot.org Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 17 May 2022 03:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55472 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 55472@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16527566408322 (code B ref -1); Tue, 17 May 2022 03:04:02 +0000 Received: (at submit) by debbugs.gnu.org; 17 May 2022 03:04:00 +0000 Received: from localhost ([127.0.0.1]:55501 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nqnV9-0002A9-Pi for submit@debbugs.gnu.org; Mon, 16 May 2022 23:04:00 -0400 Received: from lists.gnu.org ([209.51.188.17]:34646) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nqnV8-0002A0-2H for submit@debbugs.gnu.org; Mon, 16 May 2022 23:03:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57624) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqnV7-0005Vf-Tu for guix-patches@gnu.org; Mon, 16 May 2022 23:03:57 -0400 Received: from knopi.disroot.org ([178.21.23.139]:33646) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqnV5-0007jN-Ay for guix-patches@gnu.org; Mon, 16 May 2022 23:03:57 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 8F69B42E58 for ; Tue, 17 May 2022 05:03:51 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AMWck-ddg8DD for ; Tue, 17 May 2022 05:03:50 +0200 (CEST) Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1652756628; bh=k7EBTj14jVuiSakZpTQ1QOAluDVf9u+wByapYUnxxBw=; h=Date:From:Subject:To; b=DB9Gw0218EkopuCinlm8gA0JoOR8G31Bf5l3R85HdIy912CgjQWNSd5kMy2epNfsg oFW+OJNUDhkdGh+oKzD2AZGAFZkDsibsKpxZNZb/CrQ7Kg1lZ5xvT30okl5ItkwUCe BkUcv26PDYPIslk5LkzlrnCuHXCPsHntyvKLUV+fnojY/cLHWHdWUDGriwHdg2EAjQ 06ieKqp8Pk+Ghvt7TTm4MFLrRl64GlEWsM/9abdJ7ZFAfLi1kfYqu0Zr9tLLJrwzNg 5DI3G9somSkZUnssmFMOYApeZ02UIEBtnJA1eAdiWn/fuVM6Z6fzty2ihdqmcpVs8b 6PQzc2J4GWuPg== Date: Tue, 17 May 2022 03:03:47 +0000 Message-ID: <6e9fbc79187385bfd2ba1a4e250b16a4da64ee6a@disroot.org> Received-SPF: pass client-ip=178.21.23.139; envelope-from=kiasoc5@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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" Reply-to: kiasoc5@disroot.org X-ACL-Warn: , kiasoc5--- via Guix-patches X-Patchwork-Original-From: kiasoc5--- via Guix-patches via From: "Deslauriers, Douglas via Guix-patches\" via" X-getmail-retrieved-from-mailbox: Patches From 71636bda1f6db3e0b56a8740eb9c96fa4bc1f284 Mon Sep 17 00:00:00 2001 From: kiasoc5 Date: Mon, 16 May 2022 22:51:53 -0400 Subject: [PATCH 1/2] gnu: python-tldr: Update to 3.1.0. * gnu/packages/python-xyz.scm (python-tldr): Update to 3.1.0. [phases]: Add phase to build docs. --- gnu/packages/python-xyz.scm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 5de654a585..c9b700221b 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -22776,7 +22776,7 @@ (define-public python2-tldextract (define-public python-tldr (package (name "python-tldr") - (version "1.2.1") + (version "3.1.0") (source (origin ;; There's no test in PyPI. @@ -22786,20 +22786,23 @@ (define-public python-tldr (commit version))) (file-name (git-file-name name version)) (sha256 - (base32 "0n9wqvjxspm18vlxf9j9slrcydshk4rkv5nwkrqhfq606n6zvks4")))) + (base32 "1hxmprqg8c4cvs19n7f80f3y7jj74i8sc2dmq2gdjmsdrb54bbzc")))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases + (add-after 'build 'build-doc + (lambda _ + (invoke "make" "-C" "docs"))) (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? ;; This test fails. It tries to open a network socket. (invoke "pytest" "-vv" "-k" "not test_error_message"))))))) (native-inputs - (list python-pytest python-pytest-runner)) + (list python-pytest python-pytest-runner python-sphinx-argparse)) (inputs - (list python-argcomplete python-colorama python-termcolor)) + (list python-argcomplete python-colorama python-termcolor python-shtab)) (home-page "https://github.com/tldr-pages/tldr-python-client") (synopsis "Python command-line client for tldr pages") (description "This package provides the @code{tldr} command allowing users -- 2.36.1 From 7e1821dc97567bacee2d478379c1772af4572aa8 Mon Sep 17 00:00:00 2001 From: kiasoc5 Date: Mon, 16 May 2022 22:57:39 -0400 Subject: [PATCH 2/2] gnu: python-tldr: Use g-exp. * gnu/packages/python-xyz.scm (python-tldr)[arguments]: Rewrite with (guix gexp). --- gnu/packages/python-xyz.scm | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index c9b700221b..f122b86a55 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -22789,16 +22789,16 @@ (define-public python-tldr (base32 "1hxmprqg8c4cvs19n7f80f3y7jj74i8sc2dmq2gdjmsdrb54bbzc")))) (build-system python-build-system) (arguments - `(#:phases - (modify-phases %standard-phases - (add-after 'build 'build-doc - (lambda _ - (invoke "make" "-C" "docs"))) - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - ;; This test fails. It tries to open a network socket. - (invoke "pytest" "-vv" "-k" "not test_error_message"))))))) + (list #:phases + #~(modify-phases %standard-phases + (add-after 'build 'build-doc + (lambda _ + (invoke "make" "-C" "docs"))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; This test fails. It tries to open a network socket. + (invoke "pytest" "-vv" "-k" "not test_error_message"))))))) (native-inputs (list python-pytest python-pytest-runner python-sphinx-argparse)) (inputs