nixpkgs/pkgs/development/python-modules/tree-sitter-python/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
798 B
Nix
Raw Normal View History

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
tree-sitter,
}:
buildPythonPackage rec {
pname = "tree-sitter-python";
version = "0.23.6";
pyproject = true;
src = fetchFromGitHub {
owner = "tree-sitter";
repo = "tree-sitter-python";
tag = "v${version}";
hash = "sha256-71Od4sUsxGEvTwmXX8hBvzqD55hnXkVJublrhp1GICg=";
};
build-system = [
setuptools
];
optional-dependencies = {
core = [
tree-sitter
];
};
# There are no tests
doCheck = false;
pythonImportsCheck = [ "tree_sitter_python" ];
meta = with lib; {
description = "Python grammar for tree-sitter";
homepage = "https://github.com/tree-sitter/tree-sitter-python";
license = licenses.mit;
maintainers = with maintainers; [ doronbehar ];
};
}