From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2CmzIoNfMGMBrwAAbAwnHQ (envelope-from ) for ; Sun, 25 Sep 2022 16:02:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id eIbBIYNfMGPzNAAAG6o9tA (envelope-from ) for ; Sun, 25 Sep 2022 16:02:43 +0200 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 404ED43BCA for ; Sun, 25 Sep 2022 16:02:43 +0200 (CEST) Received: from localhost ([::1]:56464 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ocSDS-00017i-EM for larch@yhetil.org; Sun, 25 Sep 2022 10:02:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55436) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocSBq-00009Z-Vm for guix-patches@gnu.org; Sun, 25 Sep 2022 10:01:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49190) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ocSBq-000361-I5 for guix-patches@gnu.org; Sun, 25 Sep 2022 10:01:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ocSBq-0000E3-6O for guix-patches@gnu.org; Sun, 25 Sep 2022 10:01:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58072] [PATCH] gnu: Add python-textual. Resent-From: Brian Kubisiak Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 25 Sep 2022 14:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58072 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58072@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.1664114418774 (code B ref -1); Sun, 25 Sep 2022 14:01:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 Sep 2022 14:00:18 +0000 Received: from localhost ([127.0.0.1]:48266 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ocSB7-0000CO-NF for submit@debbugs.gnu.org; Sun, 25 Sep 2022 10:00:17 -0400 Received: from lists.gnu.org ([209.51.188.17]:50556) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ocSB2-0000C6-Fx for submit@debbugs.gnu.org; Sun, 25 Sep 2022 10:00:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49398) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocSB2-0007tS-78 for guix-patches@gnu.org; Sun, 25 Sep 2022 10:00:12 -0400 Received: from [75.171.8.149] (port=2498 helo=mail.kubisiak.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ocSB0-0002uX-DI for guix-patches@gnu.org; Sun, 25 Sep 2022 10:00:11 -0400 Received: from peregrine (108-237-41-25.lightspeed.sntcca.sbcglobal.net [108.237.41.25]) by mail.kubisiak.com with ESMTPSA (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256) ; Sun, 25 Sep 2022 07:59:26 -0500 Date: Sun, 25 Sep 2022 05:59:24 -0700 From: Brian Kubisiak Message-ID: <20220925125924.sifu3hzebvuoc6ay@peregrine> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Host-Lookup-Failed: Reverse DNS lookup failed for 75.171.8.149 (failed) Received-SPF: pass client-ip=75.171.8.149; envelope-from=brian@kubisiak.com; helo=mail.kubisiak.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664114563; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post; bh=0ua2sv+/ZNP7zocYzpn2Rc63nX6Og0IX20vNM9hA2Ds=; b=YVUcBHKDXQYE1BDz4uygMgAKNaB2MCNg1RxnZ0FO5/qAd5Lm1XVwS6Ue6/iWuxvcpIeDjZ q3IQYnocpFw9El0ZjupwlZW6ESNWdBx1FoJU4touHOXjkm4lFpR4xnRKW2qhRbb1RL7ACm JppxJaAGSL7zDbV167f7zpsdLBz4/sF/yd/DXGp3iLn+pdab6Vh7r3lfqAHxjnC9mObkFq FNAB5mSWVIJHGdH2HcQAVCCE2GhEIjG8tnfQmdxdw6QQgJsIq+Quty3FFQqsBFKaM0V6sg G+V9IaZsYdVK6IsBXmU7LSLXC5iGcWsnukJzSWwWWznmrH1wi7zjuOEAaXDF1w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664114563; a=rsa-sha256; cv=none; b=KsEL/AwXPkDnDBp2Bq539SdFHZTTy+5HcmLIqT7U+oIrq0tY1YhPSMktkU4G2yMzTY0+R+ mqKR4r1kQk/Re7jAyQxJMbxSuhG/VqVzy7j/kHznGYefwKXMhN81JGU4YhVhTL19NLP9fS ZOvnj/ac/tNDF7uTBnbmuN2eH4Mg5bQ5oPPcUVmDBmx1IoF5Jctb2toeW3575ap3vWcEjw ivSaYULJaO5WzcCi//H7oDGuwcSMmurnhq284CVaf08as3Ks+MJ9QCl64ekVBHqCU/l2Hm j3TwGe5QbYWSLmtUnoxhr8P2UhYSUta9c9dpe3n1IajZXV/TiWN2kSA9/Upz3Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.05 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 404ED43BCA X-Spam-Score: -1.05 X-Migadu-Scanner: scn1.migadu.com X-TUID: 59AF+VG1vsyT * gnu/packages/python-xyz.scm (python-textual): New variable. --- gnu/packages/python-xyz.scm | 44 +++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index ffcb023d60..5fd7dad8e3 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -15973,6 +15973,50 @@ (define-public python-rich syntax highlighting, markdown and more to the terminal.") (license license:expat))) +(define-public python-textual + (package + (name "python-textual") + (version "0.1.18") + (source (origin + (method url-fetch) + (uri (pypi-uri "textual" version)) + (sha256 + (base32 + "08yg5a51hz1axfj5hx28hx31gq5apcj6vpkkmawmiplisa73z25j")))) + (build-system python-build-system) + (arguments + (list #: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-rich 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/Textualize/textual") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0b3ycwqhp21mg9fvmadgxhgbvkwq6fd784l2xcmvy77rravrnnax")))))) + (home-page "https://github.com/Textualize/textual") + (synopsis "Build TUIs in python") + (description "Textual is a TUI (Text User Interface) framework for Python +inspired by modern web development.") + (license license:expat))) + (define-public python-magic (package (name "python-magic") -- 2.37.3