Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 53 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, pythonAtLeast, pythonOlder, setuptools, setuptools-scm}:
buildPythonPackage rec { pname = "pegen"; version = "0.3.0"; format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "we-like-parsers"; repo = pname; rev = "refs/tags/v${version}"; hash = "sha256-P4zX8za9lBlXhNPkQe9p136ggZEJh6fHfBr+DQKvtTg="; };
nativeBuildInputs = [ setuptools setuptools-scm ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pegen" ];
disabledTests = [ # ValueError: Expected locations of (1, 3) and... "test_invalid_call_arguments" ] ++ lib.optionals (pythonAtLeast "3.11") [ # https://github.com/we-like-parsers/pegen/issues/89 "test_invalid_def_stmt" ];
meta = with lib; { description = "Library to generate PEG parsers"; homepage = "https://github.com/we-like-parsers/pegen"; changelog = "https://github.com/we-like-parsers/pegen/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ fab ]; };}