diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2024-03-20 12:41:44 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2024-03-20 12:43:27 +0100 |
commit | 62ef647346faf34e7f48c32009a966893a56db39 (patch) | |
tree | 376d7df8d3407b11057a4122ec607feb690cd921 /pkgs/development | |
parent | b2e6139e42ae065699ba8fb22371b742a2f7e816 (diff) |
python312Packages.tree-sitter: add patch to replace distutils
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/tree-sitter/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/tree-sitter/default.nix b/pkgs/development/python-modules/tree-sitter/default.nix index 6843791f89fc7..039b9ce21cea7 100644 --- a/pkgs/development/python-modules/tree-sitter/default.nix +++ b/pkgs/development/python-modules/tree-sitter/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage , fetchFromGitHub +, fetchpatch , pytestCheckHook , pythonOlder , setuptools @@ -21,6 +22,15 @@ buildPythonPackage rec { fetchSubmodules = true; }; + patches = [ + # Replace distutils with setuptools, https://github.com/tree-sitter/py-tree-sitter/pull/214 + (fetchpatch { + name = "replace-distutils.patch"; + url = "https://github.com/tree-sitter/py-tree-sitter/commit/80d3cae493c4a47e49cc1d2ebab0a8eaf7617825.patch"; + hash = "sha256-00coI8/COpYMiSflAECwh6yJCMJj/ucFEn18Npj2g+Q="; + }) + ]; + nativeBuildInputs = [ setuptools ]; |