1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5}:
6
7buildPythonPackage rec {
8 pname = "arpeggio";
9 version = "2.0.0";
10
11 src = fetchPypi {
12 pname = "Arpeggio";
13 inherit version;
14 hash = "sha256-1rA4OQGbuKaHhfkpLuajaxlU64S5JbhKa4peHibT7T0=";
15 };
16
17 postPatch = ''
18 substituteInPlace setup.cfg \
19 --replace "pytest-runner" ""
20 '';
21
22 nativeCheckInputs = [ pytestCheckHook ];
23
24 pythonImportsCheck = [ "arpeggio" ];
25
26 meta = with lib; {
27 description = "Recursive descent parser with memoization based on PEG grammars (aka Packrat parser)";
28 homepage = "https://github.com/textX/Arpeggio";
29 license = licenses.mit;
30 maintainers = with maintainers; [ SuperSandro2000 ];
31 };
32}