about summary refs log tree commit diff
path: root/pkgs/development/python-modules/py-tree-sitter
diff options
context:
space:
mode:
authorBen Siraphob <bensiraphob@gmail.com>2022-02-22 22:47:11 -0600
committerBen Siraphob <bensiraphob@gmail.com>2022-02-22 22:48:16 -0600
commit0acc6381b98baaff045b3739dd3ced2161c54218 (patch)
tree14d6f28881887665d16dccfdf0a69aa20cb5dec4 /pkgs/development/python-modules/py-tree-sitter
parente3454119194995a29ec9aab071c5f472f1913d23 (diff)
python3Packages.py-tree-sitter: init at unstable-2022-02-08
Diffstat (limited to 'pkgs/development/python-modules/py-tree-sitter')
-rw-r--r--pkgs/development/python-modules/py-tree-sitter/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/py-tree-sitter/default.nix b/pkgs/development/python-modules/py-tree-sitter/default.nix
new file mode 100644
index 0000000000000..9d7b829869768
--- /dev/null
+++ b/pkgs/development/python-modules/py-tree-sitter/default.nix
@@ -0,0 +1,25 @@
+{ lib, stdenv, buildPythonPackage, fetchFromGitHub }:
+
+buildPythonPackage rec {
+  pname = "py-tree-sitter";
+  version = "unstable-2022-02-08";
+  format = "pyproject";
+
+  src = fetchFromGitHub {
+    owner = "tree-sitter";
+    repo = "py-tree-sitter";
+    rev = "9c8261d36e55d9e4a6543dc9e570bfd7911ed7bf";
+    sha256 = "sha256-YDe9m85LIPNumo9mrhMMotUspq/8B3t5kt2ScMJI+hY=";
+    fetchSubmodules = true;
+  };
+
+  pythonImportsCheck = [ "tree_sitter" ];
+
+  meta = with lib; {
+    homepage = "https://github.com/tree-sitter/py-tree-sitter";
+    description = "Python bindings for tree-sitter";
+    license = licenses.mit;
+    maintainers = with maintainers; [ siraben ];
+    platforms = platforms.unix;
+  };
+}