mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-30 16:53:40 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
38 lines
1.0 KiB
Nix
38 lines
1.0 KiB
Nix
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
|
|
, colorama, regex
|
|
, pytest-runner, pytestCheckHook, pytest-mypy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tatsu";
|
|
version = "5.8.3";
|
|
# upstream only supports 3.10+
|
|
disabled = pythonOlder "3.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "neogeny";
|
|
repo = "TatSu";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-cKEMRbH/xNtYM0lmNVazv3i0Q1tmVrVPrB6F2s02Sro=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pytest-runner ];
|
|
propagatedBuildInputs = [ colorama regex ];
|
|
nativeCheckInputs = [ pytestCheckHook pytest-mypy ];
|
|
|
|
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/";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
|
|
}
|