From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iBpyE/CYBWKYSgEAgWs5BA (envelope-from ) for ; Fri, 11 Feb 2022 00:00:00 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id oHk1EPCYBWJeRgAAauVa8A (envelope-from ) for ; Fri, 11 Feb 2022 00:00:00 +0100 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 EA58133CF3 for ; Thu, 10 Feb 2022 23:59:58 +0100 (CET) Received: from localhost ([::1]:46350 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nIIPt-000509-QE for larch@yhetil.org; Thu, 10 Feb 2022 17:59:57 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36028) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIIMF-0007mo-9e for guix-patches@gnu.org; Thu, 10 Feb 2022 17:56:11 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:35439) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nIIMD-0006KV-Bv for guix-patches@gnu.org; Thu, 10 Feb 2022 17:56:09 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nIIMD-0000z0-AK for guix-patches@gnu.org; Thu, 10 Feb 2022 17:56:09 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#49946] [WIP PATCH v3 17/26] gnu: Add tree-sitter-python. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 10 Feb 2022 22:56:09 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49946 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49946@debbugs.gnu.org Cc: Pierre Langlois Received: via spool by 49946-submit@debbugs.gnu.org id=B49946.16445337663721 (code B ref 49946); Thu, 10 Feb 2022 22:56:09 +0000 Received: (at 49946) by debbugs.gnu.org; 10 Feb 2022 22:56:06 +0000 Received: from localhost ([127.0.0.1]:57552 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIIMA-0000xn-9l for submit@debbugs.gnu.org; Thu, 10 Feb 2022 17:56:06 -0500 Received: from mout.gmx.net ([212.227.17.21]:48351) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIILl-0000sD-M0 for 49946@debbugs.gnu.org; Thu, 10 Feb 2022 17:55:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1644533736; bh=+PfeOdmN0L5Hnrbd1wNUsKu1Lq/ppR3rRSofZYsD4JE=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=JNbkrM11tTiVbveSgudwqV1V0/zJoUgGNqKJIDgoQuKvB7UzcDqnWZIVVjeA/bWuJ hA6P7GDwmHGp1kCxLx4Hxkd1GpCvnkIyrz2th4+q28RCB0mNEOG/GW3p4bFI1RD7GT +dU/uqIGsY7td0pt4agKaaLvIsKsOCKJSNlNggyw= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([82.69.64.142]) by mail.gmx.net (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MCsUC-1nR82J3LSS-008rih; Thu, 10 Feb 2022 23:55:35 +0100 From: Pierre Langlois Date: Thu, 10 Feb 2022 22:55:18 +0000 Message-Id: <20220210225527.25189-17-pierre.langlois@gmx.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220210225527.25189-1-pierre.langlois@gmx.com> References: <87leyinxly.fsf@gmx.com> <20220210225527.25189-1-pierre.langlois@gmx.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:xUsSDTlVUPfXKIqimLoe22M55MAA5rCnNriJKc+jfJQCs2tsRCe lEcy+f2yHpmpPd5Sux5U5qe2CjBdgBaAsH2eM3NIKuiw1NYTMujB0xnLXxlJrSZgI769ATG N0aO0PLkeHXmByK7xrn9NthVSCNxkygT5tzLPqHYbJnUj5H4BtNicCQKeghgJNGS01U4zt/ 0IhqLDf5XNdj6vYq2gjnA== X-UI-Out-Filterresults: notjunk:1;V03:K0:q9Hs+zL8xbc=:ZaNndLC639ILVCtElawyT4 V+ZXzprto7c+tIcVzlexzo7Y/vXITf8oSnCVocgpieFD6St6d6l4PPqr1/PmNX/uNDBKVl1rD jbjk8fAMrJf/8Sw5sfVFy23dsCI3hLqRxvneuZTk2/yf5Yt5IA2PJS6W8fZUVruc8+lqIyxKp +w29bXNca6Ro37gptfR+ARoIzEbqBPpD57rLHkC26mmhR5UvZ12vPoDEhJ33aBvnOD094YpoR PgEexZXKL+BSGfZy1zUGlN4ujPLL0kMWiYELGCslOD0IeC8XXsC0RUipi8O2YUayewQiwc132 0Jr964Z03M7s5R4oby+v/vN1hGYxOlbykxFsxec3vtAQ96CfD0jKcwma2X08WsZFzDwHv8dpD Z3B77F6FmyOyvmDMbZxS1V1diOShxihqGVHo3mdNBvBhJt4LHr61XXY1qH7cgoJ3i2CinnTTH 5d6aQZWHZHJhRd9Q8onEMYxo1hIgKEGAGOmPZkcQvuo2ONHyNDIJBHDiuohm/FdDEsEU9eSqr LG/GQZgM+d4R0lgeswWqpJCvC0hAzrVxcPQtZIdGqiPLPWq+0bAfiTosCv14D2Jv7WM4PR5Tp jKABIOQrx7MyEllT/Wl8cpV2SDQVjMd1n2TFQ/kC/0dVQykcRyCFqgKyzjEwstBheB9A/Az4B Mg358/mbloYMa+Nv1+K04qQiWdVK5Yf+t63yMjefnDWCQIM7kkFcMQDt89LOIY+S4nYTFIt1r pk07Of80rkwD5j2X8tS5TDIqtUMGUAi5bcgBbHENVZRR1xrjctGX+JpU70kDwcBXHyCeU3eXk HTTjn3RXSa66AvBIEkU1AvJy9pRdtqcbmx/MTF7Z/jnDENQzEgtnc8iIyUiRi90FQdyMuK7YO K5RJOy0/WwEvI/MPl4EE3UlGWR/5aDVsrrtHIZrslGbRduuI/niVagiLcs01NM/Ujc/NlBfsF JBfgqX5ncx9XC3vZ5Lm3rYX3NVleZPi2s8rZWu3RMJjEkBfxPRZWoYDTPnF4SQojDjMTC07SK Z5wF7tH6kOHeV2Ey6DpugZYl4OnK/tsrjFEFXkyUfLov3oIiTxrn0cDQSAQJK8KjTqjPU/LdD 7MIp2Jw6rN/wuk= 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-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1644533999; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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:dkim-signature; bh=FKXO5d5Q1ctqQUqE50pn7H3E6DuHB32jN+Bn4NoAI6Q=; b=UuWmnq5Yqiu5Ql73L52SekPcFzrkSm3BtixabRF6uBYtj/ajgBbIe9OqNIIYBVGYOqr7sO ak5D/I/iiUfBUmRwTqB5+Ch+OG0LySeTPDpj8dQAe1dhkL40ZBHE4+kD/WFs7vWiFTQ6wA zrNnKSF/ZwiIQl/EW5iCBqTi1fx/wK7CcBX6M8wCcyEnjwLQLrLtMwUrMFfNcx8rvj0LRm 2tFtyyxXXiiMKnO1urjlcojh7t6LiZKymNYgaJIGMz9ddCK7zofV+rlE0kKiX8FIylYbLi M+goAvA9t+D8soY2Sg0s/bkCYgST7Lf2mA7/lMzR6y7Nt7lIWkwAoGMMYW1g8g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644533999; a=rsa-sha256; cv=none; b=RX/PLnmNt3eR6xIH0T6De+qFBXoRVnp06SqN2uA8oUajmOHCMmHsytMZVPh8X9xeZb010V TVIeDOgyBEw0hQoX1JdQfJkKbYEi0a8ez1WhR3MYWkWW/Q7ZTchsNdl23H1XXNrtogNCCY iysoMgQhMTt4h15+jbMkC3oUDAzFxu+97XVmIVfmAPuIeNAPA+eFvGcZmfzPIS6btKPYEX YJmwns1qhVJA+z0ZoKBaWaZUUokAmnUFfJUSQJHf+1/+WmpNRfHsIqDd5TJWKH238ztucJ RzPFzbZdIU54NqbWXf79dsvVEWd2NQs1EH/RIhY2Jg7ds/Wr/4FpSLZ2L+cVOw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=JNbkrM11; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.com (policy=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: -2.13 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=JNbkrM11; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.com (policy=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: EA58133CF3 X-Spam-Score: -2.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: eWJ/+sA571Nk * gnu/packages/tree-sitter.scm (tree-sitter-python): New variable. =2D-- gnu/packages/tree-sitter.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/tree-sitter.scm b/gnu/packages/tree-sitter.scm index 072d2bf588..05d6ade77d 100644 =2D-- a/gnu/packages/tree-sitter.scm +++ b/gnu/packages/tree-sitter.scm @@ -447,3 +447,26 @@ (define-public tree-sitter-php (description "This package provides a PHP grammar for the Tree-sitter library.") (license license:expat))) + +(define-public tree-sitter-python + (package (inherit tree-sitter-c) + (name "tree-sitter-python") + (version "0.19.1") + (source (tree-sitter-origin + name + version + "16i5mcpz4ld0rybffb0nxim4crb9fhnnq20b4bkjs7jjr3zcx7vq")) + (arguments + (substitute-keyword-arguments (package-arguments tree-sitter-c) + ((#:phases phases) + `(modify-phases ,phases + ;; The parse-example script tries to clone git repositories. + (add-after 'unpack 'remove-parse-example + (lambda _ + (substitute* "package.json" + ((" && script\\/parse-examples") "")))))))) + (home-page "https://github.com/tree-sitter/tree-sitter-python") + (synopsis "Tree-sitter Python grammar") + (description + "This package provides a Python grammar for the Tree-sitter library= .") + (license license:expat))) =2D- 2.34.0