12 buildPythonPackage rec {
17 disabled = pythonOlder "3.8";
19 src = fetchFromGitHub {
20 owner = "we-like-parsers";
22 rev = "refs/tags/v${version}";
23 hash = "sha256-P4zX8za9lBlXhNPkQe9p136ggZEJh6fHfBr+DQKvtTg=";
31 nativeCheckInputs = [ pytestCheckHook ];
33 pythonImportsCheck = [ "pegen" ];
37 # ValueError: Expected locations of (1, 3) and...
38 "test_invalid_call_arguments"
40 ++ lib.optionals (pythonAtLeast "3.11") [
41 # https://github.com/we-like-parsers/pegen/issues/89
42 "test_invalid_def_stmt"
46 description = "Library to generate PEG parsers";
47 homepage = "https://github.com/we-like-parsers/pegen";
48 changelog = "https://github.com/we-like-parsers/pegen/releases/tag/v${version}";
49 license = licenses.mit;
50 maintainers = with maintainers; [ fab ];