depot/third_party/nixpkgs/pkgs/development/python-modules/tree-sitter/default.nix
Default email 87f9c27ba9 Project import generated by Copybara.
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
2023-04-12 14:48:02 +02:00

41 lines
806 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
, setuptools
, wheel
}:
buildPythonPackage rec {
pname = "tree-sitter";
version = "0.20.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "tree_sitter";
inherit version;
hash = "sha256-6T8ILFRdZkm8+11oHtJV6wBKbOIpiJcaEo9AaS/uxg0=";
};
nativeBuildInputs = [
setuptools
wheel
];
# PyPI tarball doesn't contains tests and source has additional requirements
doCheck = false;
pythonImportsCheck = [
"tree_sitter"
];
meta = with lib; {
description = "Python bindings to the Tree-sitter parsing library";
homepage = "https://github.com/tree-sitter/py-tree-sitter";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}