From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CIvCJ4tsEGHDJgEAgWs5BA (envelope-from ) for ; Mon, 09 Aug 2021 01:45:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id CGhOI4tsEGEnGwAAB5/wlQ (envelope-from ) for ; Sun, 08 Aug 2021 23:45:15 +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 38BED10EBF for ; Mon, 9 Aug 2021 01:45:15 +0200 (CEST) Received: from localhost ([::1]:45602 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mCsTi-0002uK-8F for larch@yhetil.org; Sun, 08 Aug 2021 19:45:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57870) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mCsTW-0002tm-Jv for guix-patches@gnu.org; Sun, 08 Aug 2021 19:45:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43510) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mCsTW-0004em-DR for guix-patches@gnu.org; Sun, 08 Aug 2021 19:45:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mCsTW-0001E3-A8 for guix-patches@gnu.org; Sun, 08 Aug 2021 19:45:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49946] [PATCH 21/31] gnu: Add tree-sitter-python. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 08 Aug 2021 23:45:02 +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.16284662544516 (code B ref 49946); Sun, 08 Aug 2021 23:45:02 +0000 Received: (at 49946) by debbugs.gnu.org; 8 Aug 2021 23:44:14 +0000 Received: from localhost ([127.0.0.1]:55026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCsSk-0001Am-44 for submit@debbugs.gnu.org; Sun, 08 Aug 2021 19:44:14 -0400 Received: from mout.gmx.net ([212.227.17.20]:47821) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCsSi-0001AQ-IN for 49946@debbugs.gnu.org; Sun, 08 Aug 2021 19:44:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1628466246; bh=qHHF39rTjj3zOe5sEZGdsbFzOYpiNvenpM1cDgLUslM=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=ek02yG5mwzz/qw2R/fEC4DcBZk724D9gRKe4Tnu1MFL6OKeOBEmKOCwX198EJq9iW jsrR828Z8KpnPBpAWNmTLQqHuCChNB5pclkB8edALIXO2bu3n0V5uwxn9LklhWNqax h4Ks8FpwxQVdqhgB8PUEnHRItj+QzaPkJuASmBLg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([82.69.64.142]) by mail.gmx.net (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MDysm-1mMjpa1F3s-009zYy; Mon, 09 Aug 2021 01:44:06 +0200 From: Pierre Langlois Date: Mon, 9 Aug 2021 00:43:48 +0100 Message-Id: <20210808234358.7241-1-pierre.langlois@gmx.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210808233354.6745-20-pierre.langlois@gmx.com> References: <20210808233354.6745-20-pierre.langlois@gmx.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:+u1Odu3fK1NDlUMEaRmxOdq3NfCIdXIsNf+6S6Wx96XVsYUcccF 8iY8VtCDlPm4aG4V/gJsA7dqlz4wve2kMZ6lMpAElczXMmCVAw9rprmzz+nMbPVkgUs6rMj tvysStl1aARb3C22v66vLI8s4/S+ancYVzc2rnavPycD0jrXPvcNIwywtjkC76TYG/4mT7M rA0737s/df95oHeU27Vbg== X-UI-Out-Filterresults: notjunk:1;V03:K0:WmcXWCWC3YI=:c1n+pxYRuQeqPsc78Jnfsn NeY/JC4CDKtvLzKlcvhwvIXqngkeu/6KeMII6d4zEdLf7sxh3yKvjBQ7YxgkEao+kh18y8qcj Cjvk6SI02H8srRc6AuB4Ikvrr5sgVzgdVAQcf21ekBS82rxLc8c0vtLQMGHlvLGvju0I+T+vE hrDkyyn35g0zk1UJUydatBeO6er2/7tLUTjjQeBtjvSfejP0HmVumTcPdoKIPoabyMNco4rpR weR3V4Lvz/Z5JJnESInDiLxp8n70H1P7GIidkEdLVKt2gi1vNTQjKl/7zBwIqgHMf6+C+jm+1 FbYCPitKRAEVel8FlflEVolDx9hFRIWUXjgwHPvrvZNFbHHdxx8DtX/vyTu7xSOWjyL5A2aI8 YLKc/Ab+ab19bYi71yHLX9X/iTmbnqUJ6uyhoKrfynjlpxG6ica05WD7E+YSDNaWzIsTMOITK 15YnhqHoRjPq50hSRW30/yugjoaJKq85qtU8zt9LQTIy9cvn/zhYdJEqX6nbuZWxvUnqxXxWB nSgqurxP8GYUWvAyepzvdBeOgon/lN2SBH2YZr5WznY/PPo3dh6iJKD/+4H7GS9LNFG0RFYGC XQeEvLa4useiPIcsOa7iBEdhxF1j0tgKfsCqHBJDfLmaBsQN4QzPVNwau5BDfrbhtap/33Ebv hxCtwmr1z8Fe8E4z4PRlwWy0PWLkRgAS1gL9dARGZq3grIdCWYGFvkTK7vVOkyX+6lEOxT7O/ 2hYPSeHpkHpW+Hx/49zRljmJ5dh3rG94m0rSGF7dSnNZNCWK86WWYh4ZJBf8HFGWibZLT396u Ki7a190Fc0X4AGsKZl4A7RkE6eltLC8QE8tOOS00iG7oEhEKKi2zzyOl5rUFl393rKxC8eIX8 z80bp1m3rLHiDkdvBLtezEisIdJsamKtjkJwm/vTfmV1tv7SOIFSPgHvV5EL6dobXHdpxppdJ 8S/QieufMnJseM69k/q5GWPc84GGkMVK1v6kjfvT9vjUwVBqrEqhWltYaZMIU8AR5nvlVjlOD TUR9MJVSHROlECVrs4fz/iDbk0/ssqPOIMikJiAM3tMB1JNyWuUBMUBKfWtXQTO1E4RlI/eNh Z+U3ASICAfOOk6FTKH4zXhffByYXEvvaeaauqwsYRsqFL5PIPK19rCUjg== 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=1628466315; 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=FCFW3kWhH+ua4/yge7ht1fUKtvCHnZU6PJh9cuRb9tI=; b=W4pPLXqTofKUmAseDrGcgj3xv0tWyk+Rkf8lYTUDM8/bYKET24iHq6OqMtCWUbxpXcK2jp ZJlz3SzkW0zjfPt9Pr8PEMIWN9LFojrpAIjrDO3h/qBieEeh79Jl25JF9txOlZDKGw8ucx VN8vrPgaJ3Ao7bXpSP3ZG8os6OTdq0JIJiGTONwpjHydEl8XJex0oi3lKiWgzx/TO4TM/U QHL7cKWSOamJdTJ5VM7cLLOwqYpIKUSnlIqT9te4irYMygL9Yys4He8yd+9+FuItjiecmu XIxwCkv8Q3Tg/rbE8o6VRHatZ+t1Ianrl0vUKkfPuuKWA9S9/uQMrAvdlncKtw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628466315; a=rsa-sha256; cv=none; b=b5jQgA1Q1u7o0xH/VNRD7nBUN/cm2XdemuQMBnc2Z8FWwV5Z+zndu7hKnbk12i1ZbEZzG1 /5zQAqCE/02Kb5merDadd76lejj6Fwty2SKnLo4AFGQ+CdXDXLMAkKQJltER0XWTPGAIPh z0aeKXtKgdvxjh9gJrqS0bYR/vkMytRU0mocqkZQqXvToT7H0LQh6eSy+sc8w5CsAW3hv5 j+lQQEv5WhL0uN5LiK5QsOqbEMXyXInTqLWHSinpZh7YTmhxs61YHqGNp7RLaBgPjuQf6l mRpPy8o9rinoroL/qsxlPDCFjbLoQRLiwTxNrhcrgsT6eQ4PAHu55Ryg+OA1pQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=ek02yG5m; 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-Spam-Score: 2.19 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=ek02yG5m; 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: 38BED10EBF X-Spam-Score: 2.19 X-Migadu-Scanner: scn0.migadu.com X-TUID: x7YZZPfprNSZ * 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 9f1a30f0cc..d7c3468035 100644 =2D-- a/gnu/packages/tree-sitter.scm +++ b/gnu/packages/tree-sitter.scm @@ -388,3 +388,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.32.0