From patchwork Mon Jun 5 11:54:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Nicolas Graves X-Patchwork-Id: 50681 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 8830F27BBEA; Mon, 5 Jun 2023 12:56:16 +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.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=ham 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 3319527BBE9 for ; Mon, 5 Jun 2023 12:56:12 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q68od-0003vf-Qs; Mon, 05 Jun 2023 07:56:04 -0400 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 1q68oc-0003uq-Bd for guix-patches@gnu.org; Mon, 05 Jun 2023 07:56:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q68ob-0004ig-Uy for guix-patches@gnu.org; Mon, 05 Jun 2023 07:56:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q68ob-0002kK-Qa for guix-patches@gnu.org; Mon, 05 Jun 2023 07:56:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63906] [PATCH] gnu: Add python-tree-sitter. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 05 Jun 2023 11:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63906 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63906@debbugs.gnu.org Cc: ngraves@ngraves.fr X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168596610210451 (code B ref -1); Mon, 05 Jun 2023 11:56:01 +0000 Received: (at submit) by debbugs.gnu.org; 5 Jun 2023 11:55:02 +0000 Received: from localhost ([127.0.0.1]:48291 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q68ne-0002iK-2K for submit@debbugs.gnu.org; Mon, 05 Jun 2023 07:55:02 -0400 Received: from lists.gnu.org ([209.51.188.17]:56410) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q68nb-0002i2-Qj for submit@debbugs.gnu.org; Mon, 05 Jun 2023 07:55:00 -0400 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 1q68nb-0003Vx-CE for guix-patches@gnu.org; Mon, 05 Jun 2023 07:54:59 -0400 Received: from 8.mo581.mail-out.ovh.net ([46.105.77.114]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q68nZ-0004EQ-7y for guix-patches@gnu.org; Mon, 05 Jun 2023 07:54:59 -0400 Received: from director10.ghost.mail-out.ovh.net (unknown [10.109.156.133]) by mo581.mail-out.ovh.net (Postfix) with ESMTP id BCAA4268CD for ; Mon, 5 Jun 2023 11:54:43 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-f2pb2 (unknown [10.110.103.92]) by director10.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 467B51FE9C; Mon, 5 Jun 2023 11:54:43 +0000 (UTC) Received: from ngraves.fr ([37.59.142.103]) by ghost-submission-6684bf9d7b-f2pb2 with ESMTPSA id R/aMDgPNfWQBxgAAaKYhWw (envelope-from ); Mon, 05 Jun 2023 11:54:43 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-103G005a68458a2-936a-4bcb-bb5d-ef6bf2b1c57c, 24BD45A8C995C08D5395E1BF3FBF1E19C8C2E420) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 81.67.140.142 Date: Mon, 5 Jun 2023 13:54:40 +0200 Message-Id: X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Ovh-Tracer-Id: 14772651206509454050 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvhedrfeelledggeeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffogggtgfesthekredtredtjeenucfhrhhomheppfhitgholhgrshcuifhrrghvvghsuceonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqeenucggtffrrghtthgvrhhnpeelueehgfevfeevhffftdetgedugeevveehteeileeuueejhfegffetteffhffhvdenucffohhmrghinhepghhithhhuhgsrdgtohhmnecukfhppeduvdejrddtrddtrddupdekuddrieejrddugedtrddugedvpdefjedrheelrddugedvrddutdefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpeeonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqedpnhgspghrtghpthhtohepuddprhgtphhtthhopehguhhigidqphgrthgthhgvshesghhnuhdrohhrghdpoffvtefjohhsthepmhhoheekuddpmhhouggvpehsmhhtphhouhht Received-SPF: pass client-ip=46.105.77.114; envelope-from=ngraves@ngraves.fr; helo=8.mo581.mail-out.ovh.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, 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: , Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches X-Patchwork-Original-From: Nicolas Graves via Guix-patches via From: Nicolas Graves 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/tree-sitter.scm (python-tree-sitter): New variable. --- gnu/packages/tree-sitter.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) base-commit: eed55a6544d5bda2245ec853e5fa4b28e1865bea prerequisite-patch-id: a057b35ab55298bad50caab186b3e692a25230e1 prerequisite-patch-id: fb9054f780e6f97b92f00fdbe56058d1188ccf0a prerequisite-patch-id: ca2f2591980b80c5cf27846e59e323bdc5a06b00 prerequisite-patch-id: ae5ad13b181ebb3c31d529af50622e3b78641442 prerequisite-patch-id: 34ed6acb0a1e5f79b5f6d18a6d4ef70cd97bf7ad prerequisite-patch-id: 10d52b209b6e9c771050eef67ce566e79ab55c49 prerequisite-patch-id: e78e2a6daf59564caf5d2affe04ea7dde07f76c6 prerequisite-patch-id: 6aad4df7b83bfd5c2da38d9c2f80fba749f607b5 prerequisite-patch-id: da6a2d63ebb0ba1abb0b7c569d353724d900f95f prerequisite-patch-id: 6279cff75e76e262f6ec82518db1fdf4c1810303 prerequisite-patch-id: 44453fcf2f2c38212a47d45d43ddcfa98167fabe prerequisite-patch-id: 641eae2fa3842045ebe6072ad78214002f818221 prerequisite-patch-id: c19de9ee8c57210cbffc79945e69a858639f39bf prerequisite-patch-id: 9833a747398a641803e203f8293382f55ad24ed1 prerequisite-patch-id: 94d5340918e3626726b6d32d93bf47425751898f prerequisite-patch-id: e18164416e2c070b0b71f770c90d4c04af2635c1 prerequisite-patch-id: 31e98ea035053a965e87ad0164030cf909922d9e prerequisite-patch-id: a1cf1f5c4a0ff2804fac986a69ffbc0328300afe prerequisite-patch-id: 2a54e276f79fb57113a0be11e1ea2c07fdc2727d prerequisite-patch-id: a463de1ba17ecb39588dfbd46c3bc5f9e0fb1b1c prerequisite-patch-id: 3188de66dfc4bcb71f90601822428701528f4a98 prerequisite-patch-id: 6c93f771a1eca0747fd92a770fe750e2f15d8e52 prerequisite-patch-id: 12b76e9c2751da73ed64c9489b15f74ff17568cf prerequisite-patch-id: eb618ab7b10483d917c308a38792af98baa517e2 prerequisite-patch-id: a471a4b7839bfb0ee9a3fd53ed962d729d38bd94 prerequisite-patch-id: 5e58202cc87a257c78033dafa62ffae4383e3718 prerequisite-patch-id: da6f4e25ed77113effc398694478bb392c4306ac prerequisite-patch-id: febce01ba95d8c8f22e2088ab605ffd6959036ba prerequisite-patch-id: caf73ad8377b81dd6f8e328bcaae935680df30ce prerequisite-patch-id: 779a2f8d2ffa699e3c0029fde8dea22f5cce15b0 prerequisite-patch-id: a2dfb2fba1e1a3c8e270823022b6f462d27f17c8 prerequisite-patch-id: 843773f53ca319821185f9f9bc43ad905f081ee7 prerequisite-patch-id: cd7f69695aa47b7e1b1160841fe842a3acd160e7 diff --git a/gnu/packages/tree-sitter.scm b/gnu/packages/tree-sitter.scm index 853507be2d..2887fa823b 100644 --- a/gnu/packages/tree-sitter.scm +++ b/gnu/packages/tree-sitter.scm @@ -4,6 +4,7 @@ ;;; Copyright © 2022 muradm ;;; Copyright © 2022 Aleksandr Vityazev ;;; Copyright © 2023 Andrew Tropin +;;; Copyright © 2023 Nicolas Graves ;;; ;;; This file is part of GNU Guix. ;;; @@ -29,12 +30,32 @@ (define-module (gnu packages tree-sitter) #:use-module (gnu packages node) #:use-module (guix build-system cargo) #:use-module (guix build-system gnu) + #:use-module (guix build-system pyproject) + #:use-module ((guix build-system python) #:select (pypi-uri)) #:use-module (guix build-system tree-sitter) #:use-module (guix gexp) #:use-module (guix git-download) + #:use-module (guix download) #:use-module (guix packages) #:use-module (guix utils)) +(define-public python-tree-sitter + (package + (name "python-tree-sitter") + (version "0.20.1") + (source (origin + (method url-fetch) + (uri (pypi-uri "tree_sitter" version)) + (sha256 + (base32 + "03f6xqpnjh4g28d9g219w9n4l07bap91ws2xzfy4jrjxahn0hgz9")))) + (build-system pyproject-build-system) + (home-page "https://github.com/tree-sitter/py-tree-sitter") + (synopsis "Python bindings to the Tree-sitter parsing library") + (description "This package provides Python bindings to the +Tree-sitter parsing library.") + (license license:expat))) + (define-public tree-sitter (package (name "tree-sitter")