depot/third_party/nixpkgs/pkgs/development/python-modules/tatsu/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

49 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
colorama,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
regex,
setuptools,
}:
buildPythonPackage rec {
pname = "tatsu";
version = "5.12.1";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "neogeny";
repo = "TatSu";
rev = "refs/tags/v${version}";
hash = "sha256-dY+hvNwYrkKko9A5yRT0EWYlvVu3OrhJMzk/8cjzuUo=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
colorama
regex
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "tatsu" ];
meta = with lib; {
description = "Generates Python parsers from grammars in a variation of EBNF";
longDescription = ''
TatSu (the successor to Grako) is a tool that takes grammars in a
variation of EBNF as input, and outputs memoizing (Packrat) PEG parsers in
Python.
'';
homepage = "https://tatsu.readthedocs.io/";
changelog = "https://github.com/neogeny/TatSu/releases/tag/v${version}";
license = licenses.bsd2;
maintainers = [ ];
};
}