Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / tatsu / default.nix
blobd5dfda53c08c1d7399e208dec54d1d8924f602ce
1 { lib, buildPythonPackage, fetchFromGitHub, pythonOlder
2 , colorama, regex
3 , pytestrunner, pytestCheckHook, pytest-mypy
4 }:
6 buildPythonPackage rec {
7   pname = "tatsu";
8   version = "5.6.1";
10   src = fetchFromGitHub {
11     owner = "neogeny";
12     repo = "TatSu";
13     rev = "v${version}";
14     sha256 = "149ra1lwax5m1svlv4dwjfqw00lc5vwyfj6zw2v0ammmfm1b94x9";
15   };
17   disabled = pythonOlder "3.8";
19   nativeBuildInputs = [ pytestrunner ];
20   propagatedBuildInputs = [ colorama regex ];
21   checkInputs = [ pytestCheckHook pytest-mypy ];
23   pythonImportsCheck = [ "tatsu" ];
25   meta = with lib; {
26     description = "Generates Python parsers from grammars in a variation of EBNF";
27     longDescription = ''
28       TatSu (the successor to Grako) is a tool that takes grammars in a
29       variation of EBNF as input, and outputs memoizing (Packrat) PEG parsers in
30       Python.
31     '';
32     homepage = "https://tatsu.readthedocs.io/";
33     license = licenses.bsd2;
34     maintainers = with maintainers; [ primeos ];
35   };