2018-07-19 16:36:05 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-10-17 07:24:37 +00:00
|
|
|
, pytestCheckHook
|
2018-07-19 16:36:05 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-03-22 00:50:17 +00:00
|
|
|
pname = "arpeggio";
|
|
|
|
version = "2.0.0";
|
2018-07-19 16:36:05 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2022-03-22 00:50:17 +00:00
|
|
|
pname = "Arpeggio";
|
|
|
|
inherit version;
|
2023-03-03 00:48:06 +00:00
|
|
|
hash = "sha256-1rA4OQGbuKaHhfkpLuajaxlU64S5JbhKa4peHibT7T0=";
|
2018-07-19 16:36:05 +00:00
|
|
|
};
|
|
|
|
|
2022-03-22 00:50:17 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace "pytest-runner" ""
|
|
|
|
'';
|
2019-10-17 07:24:37 +00:00
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2019-10-17 07:24:37 +00:00
|
|
|
|
2022-03-22 00:50:17 +00:00
|
|
|
pythonImportsCheck = [ "arpeggio" ];
|
2019-10-17 07:24:37 +00:00
|
|
|
|
2022-03-22 00:50:17 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Recursive descent parser with memoization based on PEG grammars (aka Packrat parser)";
|
|
|
|
homepage = "https://github.com/textX/Arpeggio";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2018-07-19 16:36:05 +00:00
|
|
|
};
|
|
|
|
}
|