From efe567f41af0f25ba63447c8f10170c267d2801a Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Sun, 29 Dec 2024 22:44:33 +0200 Subject: [PATCH] python312Packages.tree-sitter: fix failing test_properties --- pkgs/development/python-modules/tree-sitter/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/tree-sitter/default.nix b/pkgs/development/python-modules/tree-sitter/default.nix index 4ee037d37f84..88c7a1996e3a 100644 --- a/pkgs/development/python-modules/tree-sitter/default.nix +++ b/pkgs/development/python-modules/tree-sitter/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + fetchpatch, pytestCheckHook, pythonOlder, setuptools, @@ -26,6 +27,12 @@ buildPythonPackage rec { hash = "sha256-RWnt1g7WN5CDbgWY5YSTuPFZomoxtRgDaSLkG9y2B6w="; fetchSubmodules = true; }; + patches = [ + (fetchpatch { + url = "https://github.com/tree-sitter/py-tree-sitter/commit/a85342e16d28c78a1cf1e14c74f4598cd2a5f3e0.patch"; + hash = "sha256-gm79KciA/KoDqrRfWuSB3GOD1jBx6Skd1olt4zoofaw="; + }) + ]; build-system = [ setuptools ];