guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#49946] [PATCH v4 21/31] gnu: Add tree-sitter-python.


From: Pierre Langlois
Subject: [bug#49946] [PATCH v4 21/31] gnu: Add tree-sitter-python.
Date: Fri, 18 Feb 2022 14:39:38 +0000

* gnu/packages/tree-sitter.scm (tree-sitter-python): New variable.
---
 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 e64e248215..cecce9af50 100644
--- a/gnu/packages/tree-sitter.scm
+++ b/gnu/packages/tree-sitter.scm
@@ -651,3 +651,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
+  (let ((commit "ed0fe62e55dc617ed9dec8817ebf771aa7cf3c42")
+        (revision "1"))
+    (package (inherit tree-sitter-c)
+      (name "tree-sitter-python")
+      (version (git-version "0.19.1" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/tree-sitter/tree-sitter-python";)
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "0wrfpg84mc3pzcrdi6n5fqwijkqr1nj5sqfnayb502krvqpjilal"))
+                (modules '((guix build utils)))
+                (snippet tree-sitter-delete-generated-files)))
+      (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))))
--
2.34.0






reply via email to

[Prev in Thread] Current Thread [Next in Thread]