From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0NYyJh/ZvGB4ewAAgWs5BA (envelope-from ) for ; Sun, 06 Jun 2021 16:18:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id uEGoIR/ZvGCzAgAAbx9fmQ (envelope-from ) for ; Sun, 06 Jun 2021 14:18:07 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 22F6C120E7 for ; Sun, 6 Jun 2021 16:18:07 +0200 (CEST) Received: from localhost ([::1]:44908 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lptbJ-0008D5-Nn for larch@yhetil.org; Sun, 06 Jun 2021 10:18:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45114) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lptbG-0008Cs-1Y for guix-patches@gnu.org; Sun, 06 Jun 2021 10:18:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42137) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lptbF-0002in-Qz for guix-patches@gnu.org; Sun, 06 Jun 2021 10:18:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lptbF-000219-Mj for guix-patches@gnu.org; Sun, 06 Jun 2021 10:18:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#46616] [PATCH v2] gnu: Add python-tldr. References: <20210218140620.15816-1-tanguy@bioneland.org> In-Reply-To: <20210218140620.15816-1-tanguy@bioneland.org> Resent-From: Tanguy Le Carrour Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 06 Jun 2021 14:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46616 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46616@debbugs.gnu.org Cc: monego@posteo.net, Tanguy Le Carrour Received: via spool by 46616-submit@debbugs.gnu.org id=B46616.16229890247674 (code B ref 46616); Sun, 06 Jun 2021 14:18:01 +0000 Received: (at 46616) by debbugs.gnu.org; 6 Jun 2021 14:17:04 +0000 Received: from localhost ([127.0.0.1]:53683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lptaF-0001zK-Ur for submit@debbugs.gnu.org; Sun, 06 Jun 2021 10:17:04 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:37117) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lptaD-0001z2-Gj for 46616@debbugs.gnu.org; Sun, 06 Jun 2021 10:16:58 -0400 Received: (Authenticated sender: tanguy@bioneland.org) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id DB8ECFF807; Sun, 6 Jun 2021 14:16:50 +0000 (UTC) From: Tanguy Le Carrour Date: Sun, 6 Jun 2021 16:16:34 +0200 Message-Id: <20210606141634.19796-1-tanguy@bioneland.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1622989087; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=WC7LDMTsDD3ZwVlK1UiYn6jovT5kMvteXXNaqGz3a9k=; b=u5C20omkopv2qH8wZCm7AE+ZxPKz4xLmJ4R8OIPNE2blbQiayvsNMQG5CJiK4WmvbVs15t Xqbl55exiCX2XBmFaTTP2f1q3Neh5whi6vRR36H2BlVLlXilFGcpdbq6oEdKCO/fZ2rHkZ kZWNeQJ4Gv+cObjDWnsrr5D38kia88Fruqw94W6YP+xXspUhF2LEFXPeWwuWtKukhpEp5M WDEIvqilKypxosqSPiPdGKhE6guxUxpV/jMjhl3sQxE9Kg8hBqSXmo9QgL5TFbc009hTb7 5u4dhwM31kjnXR8vrTytpG9muA4GYbujq0h+YOAcZGfnDE8+hIt7PdzKwEcCvQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622989087; a=rsa-sha256; cv=none; b=pboBf0B5jCSc6dPkI7+VPzz41JB9fAD7+hdcy80wtU8ijsP6CbqEWNFHfE89+pOIK8XDEF gru8Q1u5HrOfRzrfN510E00vPfNF2AUF/CFSKpOVIxu6X2l9ZMN8mE1J1kikjCVJduZ28x IqUfxerjwkOlBiYmzz2PvgCiwwwewycEyApvuVJobAo9ZhUCYqGeaj8NJMV15xTFBbYxAZ XnOAakv9bqN4bjigWE4WG8eiYb4FE5YtrEuiV3J6WWa8Jq1Q+/T0oQwkWsCv0ucYQF7p7D kar7xTqO4j0uP+dKe1g/nqZlxbje/xFCca47n/+WNOGBzW+XfG/LceK/Y0uLUg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.43 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 22F6C120E7 X-Spam-Score: -1.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: EIS/YCQVhAN2 * gnu/packages/python-xyz.scm (python-tldr): New variable. --- gnu/packages/python-xyz.scm | 38 ++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index a4fe31a01f..bc8c2133f5 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -66,7 +66,7 @@ ;;; Copyright © 2019 Jacob MacDonald ;;; Copyright © 2019, 2020 Giacomo Leidi ;;; Copyright © 2019 Wiktor Żelazny -;;; Copyright © 2019, 2020 Tanguy Le Carrour +;;; Copyright © 2019, 2020, 2021 Tanguy Le Carrour ;;; Copyright © 2019, 2021 Mădălin Ionel Patrașcu ;;; Copyright © 2020 Riku Viitanen ;;; Copyright © 2020 Jakub Kądziołka @@ -20825,6 +20825,42 @@ Public Suffix List's private domains as well.") (define-public python2-tldextract (package-with-python2 python-tldextract)) +(define-public python-tldr + (package + (name "python-tldr") + (version "1.2.1") + (source + (origin + ;; There's no test in PyPI. + (method git-fetch) + (uri (git-reference + (url "https://github.com/tldr-pages/tldr-python-client") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0n9wqvjxspm18vlxf9j9slrcydshk4rkv5nwkrqhfq606n6zvks4")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + ;; This test fails. It tries to open a network socket. + (invoke "pytest" "-vv" "-k" "not test_error_message")))))) + (native-inputs + `(("python-pytest" ,python-pytest) + ("python-pytest-runner" ,python-pytest-runner))) + (inputs + `(("python-argcomplete" ,python-argcomplete) + ("python-colorama" ,python-colorama) + ("python-termcolor" ,python-termcolor))) + (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 +to view @code{tldr} pages from a shell. The `tldr' pages are a community effort +to simplify the man pages with practical examples.") + (license license:expat))) ; MIT license + (define-public python-nodeenv (package (name "python-nodeenv") -- 2.31.1