From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cjXfLgpnK2EsdAAAgWs5BA (envelope-from ) for ; Sun, 29 Aug 2021 12:52:58 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id UMDAKQpnK2ErKQAAbx9fmQ (envelope-from ) for ; Sun, 29 Aug 2021 10:52:58 +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 7646050B0 for ; Sun, 29 Aug 2021 12:52:58 +0200 (CEST) Received: from localhost ([::1]:42126 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKIQr-0008W4-HC for larch@yhetil.org; Sun, 29 Aug 2021 06:52:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40578) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKIPy-0007pQ-3Y for guix-patches@gnu.org; Sun, 29 Aug 2021 06:52:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44095) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mKIPx-0005uG-PZ for guix-patches@gnu.org; Sun, 29 Aug 2021 06:52:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mKIPx-0000QV-O8 for guix-patches@gnu.org; Sun, 29 Aug 2021 06:52:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49946] [PATCH v2 23/33] gnu: Add tree-sitter-python. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 29 Aug 2021 10:52:01 +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.16302343041568 (code B ref 49946); Sun, 29 Aug 2021 10:52:01 +0000 Received: (at 49946) by debbugs.gnu.org; 29 Aug 2021 10:51:44 +0000 Received: from localhost ([127.0.0.1]:55629 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKIPf-0000P7-Tr for submit@debbugs.gnu.org; Sun, 29 Aug 2021 06:51:44 -0400 Received: from mout.gmx.net ([212.227.17.20]:36871) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKIPe-0000OP-C6 for 49946@debbugs.gnu.org; Sun, 29 Aug 2021 06:51:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1630234296; bh=V027JpTlnMt1/5JoHP1SMYx6feAuFgU/UbtIbXbZQ3c=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=XVRG6u15kcw0oJrC2ybsm7quBYVhyPAfM0qsfonAaxZySwOV0Jy8eeDXg3rKvclce pLQUvM2QhCeIr00LJczK3druM0qmiamyVEqAyXcC7VMWOlmAQyUisZGEeEaVuELJA3 BrR8OgqWac1ubYHWcWprKjTm3O7dEhviCsD8nEGY= 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 1Msq6C-1n8y6m0GZE-00tEXt; Sun, 29 Aug 2021 12:46:36 +0200 From: Pierre Langlois Date: Sun, 29 Aug 2021 11:45:58 +0100 Message-Id: <20210829104608.3103-23-pierre.langlois@gmx.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210829104608.3103-1-pierre.langlois@gmx.com> References: <87czpwzg9e.fsf@gmx.com> <20210829104608.3103-1-pierre.langlois@gmx.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:BsvmADWFAmc+BM/ClGPQEBJGhDyqhXA7wRqSACLGMW+ASslMR+k cQ8IdD+/BhXHISt2casMDW9iKbPVVZUgO83uasVXRFeAdcGiJmb3NFdnc0NvNqcQ+1Ku7yN 87nA+fJiYQJ+WdAAXlH202jnsVz0/Ee1ff3hIBmsPh9Yd6ssKvgMTdhb3jQZm9Mk4XP5125 ST25RHg8/0mNPfKIwEpUA== X-UI-Out-Filterresults: notjunk:1;V03:K0:bQzDWUZ0qcM=:DG1N2IxVycyshjafrXqulz vR808l6P8I5z6Mt0negG1pGOsl/m+8BNFwxkWIfhEmp9xKRAXsiz/hzfsDTbJcIDUbp0Z01Jf ucwfSsQUGmxdI5uJmFhPc52ybYwgmpP5RJP27SrC7nhJ5PjHmb5KP+Y/erAixOIdYOzRzjZLd fhcwMFv6vF3ugywg51rUi7BtUbBDLFFQxHq31iTbRUhGqsXAHu6dbz9EH0tjGXHlhVVevGI0t ecgp8UvKeZUnTMEWU6YJrJ1e5Wx467SZvgEszYsEgSVXjgW0X7RNN6ZxwjZk6V1UZ3WVRzhkt GzA89GHsvCoUwwJqe3ZKQ2FjjxAylWrY4HJuR2hX1iRy+yEBPBvbsN4eV+zOFXgQ8m2Tau9A3 xoR0W0SHC4ngSMye8//XuT8cuxMrfRfi6ix82tZ/ZOeIfdPLAhraor1R/ElfF1nlLRa4uAufs 6qweEAArfGDRmvR6OUc96lzhaPZk5ACfKOjH2FqZUIgWDaQ1AciZP1I3vNxNlFH5foHuwvB5C BSkEozY4Hi+5V10Uuh2xeYPgaj1B6SuE6+gi4u8nmKszK/ve9/L0PTOIJdcrzap8AHI5F5Tyo VqyoVHiIZs0ZzGUxPrnuH/B9K16sDcKcoGHrsL/1QtQ3TFK/EQFN/H9ArI8EFDGXSG9Li+Ni2 je9V6HpdQBO4s29WFNcG3T7VZDpVbGJBIc2v8UAoMdDNDcZEAf+IZsPa/RXL3oePD0rwRq1lh 0S5vBl0m6tphOvv8dwgHBAMxceE6DmuIQIBSfKCZj0wSe1yZULUgtS87xlTGls+vOmyLKxQxL EqSG7EK60sh0nI51hFurh9odHaEUF7ajlkxk5fafFLx41mbAqRTG5Jk6vtNuTfq8Ayfr8oEav HWIJwiyQt4DLQSk1ACdM5+OdXkJ5QfuUAzYqZiV+2UoFhDw4yXQ9IhlIlevQ0jwFM5UhPs5kA Rmid0oguERgrsXHmM7IsB/H7g6WozU/fcGOlb96G7grN8UMoXwEu5qQOocLHFOA2JgQEGhxXZ /RHrFIPZXIYaCKO9nooyAkxPj82M7Ve/Sa3nf+7wxTxX4ByX58a/31lqkZw9xJumksFvJ3PsB 6XSc+0I5jEy8dtbdl96R+PnHGZpp/gWUHjtQXqJ5lODSXzwNRlIB2Ocbg== 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=1630234378; 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=daWcDm6fWmYS9UUsUMSD4fglqlYJMN4zLGZ6blVLNUA=; b=X24ujzgqAVgqMY3oKIUDlFmxkPEH0ZRxcWyjGpkA8NrCQFiEBbivizufFb3n1DhF0k/YzC g1JqKtWZa7DbWIMsgFGyOMh5YJNxm1hcbaW2EmfOhF/zzKVC7sX3nPIun4fSF8rFoyno0r 0uilVt+sV7011tkrhFiBO2j4CKvdqsFpeYS/BApZI6UUAk9VoHi0pJjTmv+GV3Ae2rKUsr XVu7kX+8X6+LXDeL4EegCPSePUKTBGv1XNezQXL5jaywIfrbJ9ndeWAJTAn6vt7Y9GCkVk JXRUrpNpleo8H8grPrO4yv3u9BoR8qIXHhvDSHcszPOx5mv/z5B0GJIZcO7ksA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630234378; a=rsa-sha256; cv=none; b=mOjEZolv9iHJD5wzIDaX+luL4XXw6olQeOYITpuOBT/9Igd8+st3p1H+z2BCUfdqO11nLR Iv3Ezark/10O6vyV0pbG2pAN55qHr6wivw0IORnvhkm0Yb2gSHS1JdxvFDACSiUBqeEyxA b/ugz+ySmNugR4piaDwB9k6oHEB1N//ugf6Jglm31WCkN+PwzBUvTxF+t2uvQ+rKilo28/ 2u5kexdvDO9sPkL7766MNGmQ5do2CUWOG2IEh+ZEP2cXoPSRxoShSIp8AYYJVpYxalDTHI c8xmegHkobm+5xmHB6O3WufjMGxCYLz1o7QLfuUZMr9wOLp4x58P/T7AV1KpKg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=XVRG6u15; 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: 2.17 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=XVRG6u15; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.com (policy=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: 7646050B0 X-Spam-Score: 2.17 X-Migadu-Scanner: scn0.migadu.com X-TUID: k0o9uSmNetT4 * gnu/packages/tree-sitter.scm (tree-sitter-python): New variable. =2D-- gnu/packages/tree-sitter.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/tree-sitter.scm b/gnu/packages/tree-sitter.scm index d717bbf7b0..ae8bfcd9ff 100644 =2D-- a/gnu/packages/tree-sitter.scm +++ b/gnu/packages/tree-sitter.scm @@ -462,3 +462,32 @@ library.") (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.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/tree-sitter/tree-sitter-python") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "04b85qxqs64x6nhbpcgrzkbilxaiwvr9yd3h065rynv7rsdg0hii")))) + (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.33.0