depot/third_party/nixpkgs/pkgs/development/python-modules/arpeggio/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

32 lines
715 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "arpeggio";
version = "2.0.0";
src = fetchPypi {
pname = "Arpeggio";
inherit version;
hash = "sha256-1rA4OQGbuKaHhfkpLuajaxlU64S5JbhKa4peHibT7T0=";
};
postPatch = ''
substituteInPlace setup.cfg \
--replace "pytest-runner" ""
'';
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "arpeggio" ];
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 ];
};
}