python3Packages.tatsu: 5.5.0 -> 5.6.0
This commit is contained in:
parent
f5e8bdd07d
commit
d8646daef1
@ -1,31 +1,26 @@
|
|||||||
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
|
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
|
||||||
, colorama, mypy, pyyaml, regex
|
, colorama, regex
|
||||||
, dataclasses, typing
|
, pytestrunner, pytestCheckHook, pytest-mypy
|
||||||
, pytestrunner, pytest-mypy
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "TatSu";
|
pname = "tatsu";
|
||||||
version = "5.5.0";
|
version = "5.6.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "neogeny";
|
owner = "neogeny";
|
||||||
repo = pname;
|
repo = "TatSu";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "07bmdnwh99p60cgzhlb8s5vwi5v4r5zi8shymxnnarannkc66hzn";
|
sha256 = "sha256-kC2MxMebS4TQEZBgTmYRBWaWSF36rVS3bXIsQgRrF0Y=";
|
||||||
};
|
};
|
||||||
|
|
||||||
disabled = pythonOlder "3.8";
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
nativeBuildInputs = [ pytestrunner ];
|
nativeBuildInputs = [ pytestrunner ];
|
||||||
propagatedBuildInputs = [ colorama mypy pyyaml regex ]
|
propagatedBuildInputs = [ colorama regex ];
|
||||||
++ lib.optionals (pythonOlder "3.7") [ dataclasses ]
|
checkInputs = [ pytestCheckHook pytest-mypy ];
|
||||||
++ lib.optionals (pythonOlder "3.5") [ typing ];
|
|
||||||
checkInputs = [ pytest-mypy ];
|
|
||||||
|
|
||||||
checkPhase = ''
|
pythonImportsCheck = [ "tatsu" ];
|
||||||
pytest test/
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Generates Python parsers from grammars in a variation of EBNF";
|
description = "Generates Python parsers from grammars in a variation of EBNF";
|
||||||
|
Loading…
Reference in New Issue
Block a user