From unknown Sat Jun 14 04:57:48 2025 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-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) * 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 From unknown Sat Jun 14 04:57:48 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#58072] [PATCH] gnu: Add python-textual. Resent-From: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 27 Sep 2022 21:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58072 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Brian Kubisiak Cc: 58072@debbugs.gnu.org Received: via spool by 58072-submit@debbugs.gnu.org id=B58072.166431297927743 (code B ref 58072); Tue, 27 Sep 2022 21:10:01 +0000 Received: (at 58072) by debbugs.gnu.org; 27 Sep 2022 21:09:39 +0000 Received: from localhost ([127.0.0.1]:56922 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odHpj-0007DN-2X for submit@debbugs.gnu.org; Tue, 27 Sep 2022 17:09:39 -0400 Received: from m4s11.vlinux.de ([83.151.27.109]:45230 helo=bjoernhoefling.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odHpd-0007DB-87 for 58072@debbugs.gnu.org; Tue, 27 Sep 2022 17:09:36 -0400 Received: from alma-ubu.fritz.box (pd951fa38.dip0.t-ipconnect.de [217.81.250.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bjoernhoefling.de (Postfix) with ESMTPSA id 5D0FF3F9A5; Tue, 27 Sep 2022 23:09:31 +0200 (CEST) Date: Tue, 27 Sep 2022 23:09:30 +0200 From: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Message-ID: <20220927230930.37137e42@alma-ubu.fritz.box> In-Reply-To: <20220925125924.sifu3hzebvuoc6ay@peregrine> References: <20220925125924.sifu3hzebvuoc6ay@peregrine> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/rLkC.F4lC8kXafx74suFf2w"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Spam-Score: 0.4 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --Sig_/rLkC.F4lC8kXafx74suFf2w Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Brian, On Sun, 25 Sep 2022 05:59:24 -0700 Brian Kubisiak wrote: > * gnu/packages/python-xyz.scm (python-textual): New variable. > --- > gnu/packages/python-xyz.scm | 44 [..] > + (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")))))) You download the sources twice: Once from pypi, and another time from GitHub as "test" input. I would suggest you use directly the GitHub sources as main sources. Then you also don't need the modified 'check phase.=20 As an example, I found python-identify, which also comments on the sources that there are no tests in PyPi (please add that comment too, it makes it clear why not to use PyPi). Would you like to send an updated patch? Thanks, Bj=C3=B6rn --Sig_/rLkC.F4lC8kXafx74suFf2w Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iF0EAREKAB0WIQQiGUP0np8nb5SZM4K/KGy2WT5f/QUCYzNmigAKCRC/KGy2WT5f /SM7AKCdRRK5+nLy143Waklae+PARTq6wQCeLDwNjR+vZIInKZ2QJz3ANkkqjD8= =XZRO -----END PGP SIGNATURE----- --Sig_/rLkC.F4lC8kXafx74suFf2w-- From unknown Sat Jun 14 04:57:48 2025 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: Wed, 28 Sep 2022 12:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58072 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Cc: 58072@debbugs.gnu.org Received: via spool by 58072-submit@debbugs.gnu.org id=B58072.16643682217996 (code B ref 58072); Wed, 28 Sep 2022 12:31:02 +0000 Received: (at 58072) by debbugs.gnu.org; 28 Sep 2022 12:30:21 +0000 Received: from localhost ([127.0.0.1]:60466 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odWCj-00024u-9v for submit@debbugs.gnu.org; Wed, 28 Sep 2022 08:30:21 -0400 Received: from [75.171.8.149] (port=1681 helo=mail.kubisiak.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odWCe-00024W-Pe for 58072@debbugs.gnu.org; Wed, 28 Sep 2022 08:30:20 -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) ; Wed, 28 Sep 2022 07:30:01 -0500 Date: Wed, 28 Sep 2022 05:30:06 -0700 From: Brian Kubisiak Message-ID: <20220928123006.uy7tevbbft2f36cg@peregrine> References: <20220925125924.sifu3hzebvuoc6ay@peregrine> <20220927230930.37137e42@alma-ubu.fritz.box> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220927230930.37137e42@alma-ubu.fritz.box> X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > You download the sources twice: Once from pypi, and another time from > GitHub as "test" input. I would suggest you use directly the GitHub > sources as main sources. Then you also don't need the mo [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > You download the sources twice: Once from pypi, and another time from > GitHub as "test" input. I would suggest you use directly the GitHub > sources as main sources. Then you also don't need the modified 'check > phase. The GitHub sources are built with poetry and do not have setup.py or setup.cfg; in order to use the existing python-build-system, the package must be built from the PyPi sources. The other option would be to disable the tests completely instead of downloading them from GitHub, but I think keeping the tests is a better option. > As an example, I found python-identify, which also comments on the > sources that there are no tests in PyPi The patch I wrote is based on python-rich (which is a similar package by the same author). > (please add that comment too, it makes it clear why not to use > PyPi). I've already got that comment here: > + ;; The release on pypi comes without tests. We can't build from this > + ;; checkout, though, because installation requires an invocation of > + ;; poetry. Thanks, Brian From unknown Sat Jun 14 04:57:48 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Brian Kubisiak Subject: bug#58072: closed (Re: bug#58072: [PATCH] gnu: Add python-textual.) Message-ID: References: <87o7uohefw.fsf@gnu.org> <20220925125924.sifu3hzebvuoc6ay@peregrine> X-Gnu-PR-Message: they-closed 58072 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 58072@debbugs.gnu.org Date: Thu, 06 Oct 2022 20:43:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1665088982-18612-1" This is a multi-part message in MIME format... ------------=_1665088982-18612-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #58072: [PATCH] gnu: Add python-textual. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 58072@debbugs.gnu.org. --=20 58072: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D58072 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1665088982-18612-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 58072-done) by debbugs.gnu.org; 6 Oct 2022 20:42:24 +0000 Received: from localhost ([127.0.0.1]:33635 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogXhI-0004pK-D5 for submit@debbugs.gnu.org; Thu, 06 Oct 2022 16:42:24 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34718) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogXhE-0004p2-50 for 58072-done@debbugs.gnu.org; Thu, 06 Oct 2022 16:42:23 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:54718) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogXh8-0007A2-O7; Thu, 06 Oct 2022 16:42:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=r6xMIQcPXJw1ztnVVOnimci+l22YalYkw+vgaHl+V/g=; b=XLSuiNSzRm6Smw5Qj2wp zXd7wHP8HsWBA93kucY5shRMVhd+Q8ir8rsnjkD0B5WOkVZZKxTrt8Lhk6dYyNou7yzzhel6KmaOv Egw6ZraoCT9xeYR4rZ8eZuh4Q/QDXV493ulpiiLAQ9p2YrV2vMYStcpPsMxtut8uL2l3y2HtU6AHx dHBHXe6zDorPuN+fnitWoC/NHUdJZ6kaI/58CcIekDlSfdxFbA+5R5I+0ZpmCLH5/eARaIIlmMS8B lfd7TPeUhovwUgdEry73tM2gaSUd0d7z1bW1LVdclZ/MoMERCKIn7Agxqnaxr9DigHmKgK6u0NDQP LJ8Ksdtn9+OB/A==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:55538 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogXh8-0005ox-A9; Thu, 06 Oct 2022 16:42:14 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Brian Kubisiak Subject: Re: bug#58072: [PATCH] gnu: Add python-textual. References: <20220925125924.sifu3hzebvuoc6ay@peregrine> Date: Thu, 06 Oct 2022 22:42:11 +0200 In-Reply-To: <20220925125924.sifu3hzebvuoc6ay@peregrine> (Brian Kubisiak's message of "Sun, 25 Sep 2022 05:59:24 -0700") Message-ID: <87o7uohefw.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58072-done Cc: 58072-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Brian Kubisiak skribis: > * gnu/packages/python-xyz.scm (python-textual): New variable. Applied. Thank you and thanks Bj=C3=B6rn for taking a look! I followed up with a change to remove input labels. Ludo=E2=80=99. ------------=_1665088982-18612-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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 To: guix-patches@gnu.org Subject: [PATCH] gnu: Add python-textual. 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-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) * 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 ------------=_1665088982-18612-1--