Commit 62ef6473 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python312Packages.tree-sitter: add patch to replace distutils

parent b2e6139e
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
{ 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
  ];