1{ lib 2, buildPythonPackage 3, fetchPypi 4, regex 5, pytestCheckHook 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "parsimonious"; 11 version = "0.10.0"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-goFgDaGA7IrjVCekq097gr/sHj0eUvgMtg6oK5USUBw="; 19 }; 20 21 propagatedBuildInputs = [ 22 regex 23 ]; 24 25 checkInputs = [ 26 pytestCheckHook 27 ]; 28 29 postPatch = '' 30 substituteInPlace setup.py \ 31 --replace "regex>=2022.3.15" "regex" 32 ''; 33 34 pythonImportsCheck = [ 35 "parsimonious" 36 "parsimonious.grammar" 37 "parsimonious.nodes" 38 ]; 39 40 meta = with lib; { 41 description = "Arbitrary-lookahead parser"; 42 homepage = "https://github.com/erikrose/parsimonious"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ ]; 45 }; 46}